From 25cb12dc71e83a331d31568f33ecd6315c5605fa Mon Sep 17 00:00:00 2001 From: Julian Eisel Date: Thu, 16 Jan 2020 11:53:45 +0100 Subject: [PATCH] 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. --- source/blender/editors/interface/interface_templates.c | 3 +-- 1 file changed, 1 insertion(+), 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,