diff options
author | Julian Eisel <eiseljulian@gmail.com> | 2020-01-16 13:53:45 +0300 |
---|---|---|
committer | Julian Eisel <eiseljulian@gmail.com> | 2020-01-16 13:58:37 +0300 |
commit | 25cb12dc71e83a331d31568f33ecd6315c5605fa (patch) | |
tree | e9e9fea9493b530c28a0c7e4a814e47e42fc171b /source/blender/editors/interface/interface_templates.c | |
parent | dd4d27e907c72e8066bf122e3e493f42c09b215e (diff) |
UI: Show animation cancel button in all status-bars
Previously the button would only show up in the status-bar located in
the same window that had the screen with the animation timer.
I don't see a reason not to show the button in all status-bars instead,
other animation feedback is also displayed in all windows.
Fixes T72194.
Diffstat (limited to 'source/blender/editors/interface/interface_templates.c')
-rw-r--r-- | source/blender/editors/interface/interface_templates.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/editors/interface/interface_templates.c b/source/blender/editors/interface/interface_templates.c index 0880da91005..f0e15e16e91 100644 --- a/source/blender/editors/interface/interface_templates.c +++ b/source/blender/editors/interface/interface_templates.c @@ -6863,7 +6863,6 @@ static char *progress_tooltip_func(bContext *UNUSED(C), void *argN, const char * void uiTemplateRunningJobs(uiLayout *layout, bContext *C) { - bScreen *screen = CTX_wm_screen(C); wmWindowManager *wm = CTX_wm_manager(C); ScrArea *sa = CTX_wm_area(C); uiBlock *block; @@ -7045,7 +7044,7 @@ void uiTemplateRunningJobs(uiLayout *layout, bContext *C) } } - if (screen->animtimer) { + if (ED_screen_animation_playing(wm)) { uiDefIconTextBut(block, UI_BTYPE_BUT, B_STOPANIM, |