Fix T42619: python crash: bpy.context.screen.is_animation_playing
This commit is contained in:
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
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue