Page MenuHome
Paste P255

Alternative behavior for absolute grid snapping w/ individual origins
ActivePublic

Authored by Julian Eisel (Severin) on Sep 6 2015, 12:34 AM.
diff --git a/source/blender/editors/transform/transform_generics.c b/source/blender/editors/transform/transform_generics.c
index 74dbc09..14f3a65 100644
--- a/source/blender/editors/transform/transform_generics.c
+++ b/source/blender/editors/transform/transform_generics.c
@@ -709,6 +709,12 @@ static void recalcData_objects(TransInfo *t)
{
Base *base = t->scene->basact;
+ if (t->state != TRANS_CANCEL) {
+ if (t->around == V3D_LOCAL && t->tsnap.mode == SCE_SNAP_MODE_INCREMENT && t->tsnap.snap_spatial_grid) {
+ applyGridAbsolute(t);
+ }
+ }
+
if (t->obedit) {
if (ELEM(t->obedit->type, OB_CURVE, OB_SURF)) {
Curve *cu = t->obedit->data;

Event Timeline

Julian Eisel (Severin) changed the title of this paste from untitled to Alternative behavior for absolute grid snapping w/ individual origins.
Julian Eisel (Severin) updated the paste's language from autodetect to autodetect.