Merge branch 'master' of git@git.blender.org:blender.git into blender2.8
[blender.git] / source / blender / editors / transform / transform_snap_object.c
index 2db1db24fb1acfa8073b6e7f51f92dfcbb2f4ae3..a90ca01842789c62ef28e578fa3d2d266ff4db62 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) {\