[Bf-blender-cvs] [59762ff] master: Fix T38291: depgraph tagging was wrong for OBJECT_OT_constraint_add_with_targets. This now works exactly the same way as when setting the target via RNA/constraint buttons.

Lukas Tönne noreply at git.blender.org
Mon Jan 20 13:34:42 CET 2014


Commit: 59762ff0f729607420fcfe8ad5e337a0c84f6726
Author: Lukas Tönne
Date:   Mon Jan 20 13:28:26 2014 +0100
https://developer.blender.org/rB59762ff0f729607420fcfe8ad5e337a0c84f6726

Fix T38291: depgraph tagging was wrong for
OBJECT_OT_constraint_add_with_targets. This now works exactly the same
way as when setting the target via RNA/constraint buttons.

===================================================================

M	source/blender/editors/object/object_constraint.c

===================================================================

diff --git a/source/blender/editors/object/object_constraint.c b/source/blender/editors/object/object_constraint.c
index f816d5a..23a17f2 100644
--- a/source/blender/editors/object/object_constraint.c
+++ b/source/blender/editors/object/object_constraint.c
@@ -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);




More information about the Bf-blender-cvs mailing list