Fix T38291: depgraph tagging was wrong for
authorLukas Tönne <lukas.toenne@gmail.com>
Mon, 20 Jan 2014 12:28:26 +0000 (13:28 +0100)
committerLukas Tönne <lukas.toenne@gmail.com>
Mon, 20 Jan 2014 12:28:26 +0000 (13:28 +0100)
OBJECT_OT_constraint_add_with_targets. This now works exactly the same
way as when setting the target via RNA/constraint buttons.

source/blender/editors/object/object_constraint.c

index f816d5a00908b3f53d0ae544e8a1796e82e753b7..23a17f2656911ba823f5e7feb9ef0030ac8c64c2 100644 (file)
@@ -1716,7 +1716,7 @@ static int constraint_add_exec(bContext *C, wmOperator *op, Object *ob, ListBase
                DAG_id_tag_update(&ob->id, OB_RECALC_DATA | OB_RECALC_OB);
        }
        else
-               DAG_id_tag_update(&ob->id, OB_RECALC_DATA);
+               DAG_id_tag_update(&ob->id, OB_RECALC_OB);
        
        /* notifiers for updates */
        WM_event_add_notifier(C, NC_OBJECT | ND_CONSTRAINT | NA_ADDED, ob);