Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2015-06-15 19:53:17 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2015-06-18 18:24:20 +0300
commit4b8e1233d51290b8645b7d7e3d7d5f18a01c426b (patch)
tree9d56b26201f8b285ff82d6c99c1af7798f1b87bc
parent626a78607cf4ae574ee9a60821527cd9554d1c28 (diff)
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.
-rw-r--r--source/blender/editors/object/object_shapekey.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/object/object_shapekey.c b/source/blender/editors/object/object_shapekey.c
index 8a98d0d8a1a..ed71af71ac9 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;