Snap System: fix rename `ob` to `obj`
authormano-wii <germano.costa@ig.com.br>
Fri, 14 Jul 2017 13:41:47 +0000 (10:41 -0300)
committermano-wii <germano.costa@ig.com.br>
Fri, 14 Jul 2017 13:41:47 +0000 (10:41 -0300)
This would bring problems with dupli objects

source/blender/editors/transform/transform_snap_object.c

index 85833f54da63f8a94a439bcb6cd0ea71770f90be..7ed60077baa32d474b7285a666b25818980a2324 100644 (file)
@@ -159,7 +159,7 @@ struct SnapObjectContext {
                          (snap_select == SNAP_NOT_ACTIVE && base == base_act)))\
                {\
                        Object *obj = base->object;\
-                       if (ob->transflag & OB_DUPLI) {\
+                       if (obj->transflag & OB_DUPLI) {\
                                DupliObject *dupli_ob;\
                                ListBase *lb = object_duplilist(sctx->bmain->eval_ctx, sctx->scene, obj);\
                                for (dupli_ob = lb->first; dupli_ob; dupli_ob = dupli_ob->next) {\