[Bf-blender-cvs] [4b8e123] blender-v2.75-release: Depsgrtaph: Adding shapekey should update relations

Sergey Sharybin noreply at git.blender.org
Thu Jun 18 17:38:13 CEST 2015


Commit: 4b8e1233d51290b8645b7d7e3d7d5f18a01c426b
Author: Sergey Sharybin
Date:   Mon Jun 15 18:53:17 2015 +0200
Branches: blender-v2.75-release
https://developer.blender.org/rB4b8e1233d51290b8645b7d7e3d7d5f18a01c426b

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