From 3c655fd37274acff80fbc07dd68d4fc08ce65787 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Mon, 22 Oct 2018 16:49:39 +0200 Subject: Depsgraph: Fix missing relation update The issue was happening when adding animation to properties which affects different components of IDs. Reported by Philipp Oeser as part of T56636. --- source/blender/editors/animation/keyframing.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'source/blender/editors/animation') diff --git a/source/blender/editors/animation/keyframing.c b/source/blender/editors/animation/keyframing.c index f25b9b5f094..f453c306cc7 100644 --- a/source/blender/editors/animation/keyframing.c +++ b/source/blender/editors/animation/keyframing.c @@ -157,10 +157,14 @@ bAction *verify_adt_action(Main *bmain, ID *id, short add) */ adt->action->idroot = GS(id->name); - /* tag depsgraph to be rebuilt to include time dependency */ - DEG_relations_tag_update(bmain); } + /* Tag depsgraph to be rebuilt to include time dependency. + * + * NOTE: Do it for all animation data modification, since existing animation + * data might not include relations to the newly animated components. + */ + DEG_relations_tag_update(bmain); DEG_id_tag_update(&adt->action->id, DEG_TAG_COPY_ON_WRITE); /* return the action */ -- cgit v1.2.3