From bf57c91ead6e8cab92eaaedf551afbd73f3715ed Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Mon, 15 Jun 2015 18:53:17 +0200 Subject: 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. --- source/blender/editors/object/object_shapekey.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender/editors') 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; -- cgit v1.2.3