[Bf-blender-cvs] [21242bd] depsgraph_refactor: Depsgraph: Removing constraint should rebuild relations
Sergey Sharybin
noreply at git.blender.org
Mon Dec 8 11:45:31 CET 2014
Commit: 21242bdf64e6739a815425851acee45823922d97
Author: Sergey Sharybin
Date: Mon Dec 8 15:43:07 2014 +0500
Branches: depsgraph_refactor
https://developer.blender.org/rB21242bdf64e6739a815425851acee45823922d97
Depsgraph: Removing constraint should rebuild relations
TODO: We need to decide if we want to try supporting partial graph
updates or we'll just rebuild the whole graph when something changes.
Perhaps we'd better stick to the later for the simplicity and make
sure depsgraph build is not that slow.
Hunt for the missing relation updates continues.
===================================================================
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 9f04dae..9637068 100644
--- a/source/blender/editors/object/object_constraint.c
+++ b/source/blender/editors/object/object_constraint.c
@@ -1195,7 +1195,10 @@ static int constraint_delete_exec(bContext *C, wmOperator *UNUSED(op))
if (is_ik) {
BIK_clear_data(ob->pose);
}
-
+
+ /* relatiols */
+ DAG_relations_tag_update(CTX_data_main(C));
+
/* notifiers */
WM_event_add_notifier(C, NC_OBJECT | ND_CONSTRAINT | NA_REMOVED, ob);
More information about the Bf-blender-cvs
mailing list