diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-10-22 17:49:39 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-10-22 17:49:39 +0300 |
commit | 3c655fd37274acff80fbc07dd68d4fc08ce65787 (patch) | |
tree | 01261c6e604cbf32a6228242464294a2b120e8ca | |
parent | b4ebb9d8efb202221834475e1c06b0ae3e4ffe77 (diff) |
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.
-rw-r--r-- | source/blender/editors/animation/keyframing.c | 8 |
1 files changed, 6 insertions, 2 deletions
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 */ |