[Bf-blender-cvs] [4045730d58d] blender2.8: Fix missing animation curves update when tweaking f-curves
Sergey Sharybin
noreply at git.blender.org
Mon May 28 16:48:51 CEST 2018
Commit: 4045730d58da2f1a763bd94b1967fd7bd3f26f5b
Author: Sergey Sharybin
Date: Mon May 28 16:45:28 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB4045730d58da2f1a763bd94b1967fd7bd3f26f5b
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.
===================================================================
M source/blender/editors/animation/anim_deps.c
===================================================================
diff --git a/source/blender/editors/animation/anim_deps.c b/source/blender/editors/animation/anim_deps.c
index abdc6450abd..9169df1407b 100644
--- a/source/blender/editors/animation/anim_deps.c
+++ b/source/blender/editors/animation/anim_deps.c
@@ -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 */
More information about the Bf-blender-cvs
mailing list