diff options
author | Joshua Leung <aligorith@gmail.com> | 2018-05-30 15:20:29 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2018-05-30 15:22:25 +0300 |
commit | 26f42a192819c6c54cc8f07a3e0cc11c14f1b157 (patch) | |
tree | bc0e5f42949aa77a178dfc1daf09675680b6f3ad /source/blender/editors | |
parent | 5c17dbd991d64257f99b179343b453bb60823d44 (diff) |
Fix: Toggling "mute" toggle in animation editors didn't work with copy-on-write
Tested on Autumn run cycle by muting master bone animation - when working, the
dog should run forwards when the master bone animation is being muted.
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/animation/anim_channels_defines.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/editors/animation/anim_channels_defines.c b/source/blender/editors/animation/anim_channels_defines.c index e0bb9eebffb..d48798ece97 100644 --- a/source/blender/editors/animation/anim_channels_defines.c +++ b/source/blender/editors/animation/anim_channels_defines.c @@ -4049,6 +4049,15 @@ static void achannel_setting_flush_widget_cb(bContext *C, void *ale_npoin, void if (ale_setting->type == ANIMTYPE_GPLAYER) WM_event_add_notifier(C, NC_GPENCIL | ND_DATA, NULL); + /* tag copy-on-write flushing (so that the settings will have an effect) */ + if (ale_setting->id) { + DEG_id_tag_update(ale_setting->id, DEG_TAG_COPY_ON_WRITE); + } + if (ale_setting->adt && ale_setting->adt->action) { + /* action is it's own datablock, so has to be tagged specifically... */ + DEG_id_tag_update(&ale_setting->adt->action->id, DEG_TAG_COPY_ON_WRITE); + } + /* verify animation context */ if (ANIM_animdata_get_context(C, &ac) == 0) return; |