[Bf-blender-cvs] [bf57c91] master: Depsgrtaph: Adding shapekey should update relations

Sergey Sharybin noreply at git.blender.org
Mon Jun 15 18:56:03 CEST 2015


Commit: bf57c91ead6e8cab92eaaedf551afbd73f3715ed
Author: Sergey Sharybin
Date:   Mon Jun 15 18:53:17 2015 +0200
Branches: master
https://developer.blender.org/rBbf57c91ead6e8cab92eaaedf551afbd73f3715ed

Depsgrtaph: Adding shapekey should update relations

This is needed for the new granular depsgraph, otherwise graph is not
containing all the operations needed for proper update.

And the same is actually needed onwhen removing shape key.

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

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

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

diff --git a/source/blender/editors/object/object_shapekey.c b/source/blender/editors/object/object_shapekey.c
index 8a98d0d..ed71af7 100644
--- a/source/blender/editors/object/object_shapekey.c
+++ b/source/blender/editors/object/object_shapekey.c
@@ -264,6 +264,7 @@ static int shape_key_add_exec(bContext *C, wmOperator *op)
 	ED_object_shape_key_add(C, ob, from_mix);
 
 	DAG_id_tag_update(&ob->id, OB_RECALC_DATA);
+	DAG_relations_tag_update(CTX_data_main(C));
 
 	return OPERATOR_FINISHED;
 }
@@ -301,6 +302,7 @@ static int shape_key_remove_exec(bContext *C, wmOperator *op)
 
 	if (changed) {
 		DAG_id_tag_update(&ob->id, OB_RECALC_DATA);
+		DAG_relations_tag_update(CTX_data_main(C));
 		WM_event_add_notifier(C, NC_OBJECT | ND_DRAW, ob);
 
 		return OPERATOR_FINISHED;




More information about the Bf-blender-cvs mailing list