Fix T42619: python crash: bpy.context.screen.is_animation_playing

This commit is contained in:
julianeisel 2014-11-17 16:07:28 +01:00
parent e103c9773f
commit 28d9641a3d
Notes: blender-bot 2023-02-14 09:49:27 +01:00
Referenced by issue #42619, python crash: bpy.context.screen.is_animation_playing
1 changed files with 4 additions and 3 deletions

View File

@ -3525,9 +3525,10 @@ bScreen *ED_screen_animation_playing(const wmWindowManager *wm)
{
wmWindow *window;
for (window = wm->windows.first; window; window = window->next)
if (window->screen->animtimer)
return window->screen;
if (wm)
for (window = wm->windows.first; window; window = window->next)
if (window->screen->animtimer)
return window->screen;
return NULL;
}