diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-03-15 13:48:35 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-03-15 13:48:35 +0300 |
commit | 4be4c06671551da62edf197df6e7ad8c89dc2fe0 (patch) | |
tree | 17592201ff98be5c4d6fbd69b9f8c102a168365e /source/blender/windowmanager/intern/wm_playanim.c | |
parent | 80edc0e972a2dde85509968832ce21f46d86ce58 (diff) |
Cleanup: redundant checks
In some cases moved the checks into asserts,
to ensure changes in the future don't cause
the checks to become necessary again.
Diffstat (limited to 'source/blender/windowmanager/intern/wm_playanim.c')
-rw-r--r-- | source/blender/windowmanager/intern/wm_playanim.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/windowmanager/intern/wm_playanim.c b/source/blender/windowmanager/intern/wm_playanim.c index 51dccf5bb8b..ac5fd522664 100644 --- a/source/blender/windowmanager/intern/wm_playanim.c +++ b/source/blender/windowmanager/intern/wm_playanim.c @@ -525,9 +525,7 @@ static void build_pict_list_ex( BLI_stringenc(filepath, fp_decoded.head, fp_decoded.tail, fp_decoded.digits, fp_framenr); while ((hasevent = GHOST_ProcessEvents(g_WS.ghost_system, 0))) { - if (hasevent) { - GHOST_DispatchEvents(g_WS.ghost_system); - } + GHOST_DispatchEvents(g_WS.ghost_system); if (ps->loading == false) { return; } |