Fix missing animation curves update when tweaking f-curves

Action is an own datablock, meaning, changes to f-curves needs
to copy those changes to all evaluated versions of action datablock.
This commit is contained in:
Sergey Sharybin 2018-05-28 16:45:28 +02:00
parent e673be1ebc
commit 4045730d58
Notes: blender-bot 2024-04-11 14:33:41 +02:00
Referenced by pull request #120292, Fix: renaming an ID does not properly update actions in the NLA
Referenced by commit 2f67c45b65, Fix: renaming an ID does not properly update actions in the NLA
1 changed files with 3 additions and 0 deletions

View File

@ -79,6 +79,9 @@ void ANIM_list_elem_update(Scene *scene, bAnimListElem *ale)
if (adt) {
adt->recalc |= ADT_RECALC_ANIM;
DEG_id_tag_update(id, OB_RECALC_TIME);
if (adt->action != NULL) {
DEG_id_tag_update(&adt->action->id, DEG_TAG_COPY_ON_WRITE);
}
}
/* update data */