Merge branch 'master' into blender2.8
[blender.git] / source / blender / windowmanager / intern / wm_playanim.c
index e2e0d7dd4509556df18bc801d2f978dd851686e6..fdcded8e50a0bff02acd95b08c01d551639e75d8 100644 (file)
@@ -1437,8 +1437,7 @@ static char *wm_main_playanim_intern(int argc, const char **argv)
 
                        ps.next_frame = ps.direction;
 
-
-                       while ((hasevent = GHOST_ProcessEvents(g_WS.ghost_system, 0)) || ps.wait2) {
+                       while ((hasevent = GHOST_ProcessEvents(g_WS.ghost_system, ps.wait2))) {
                                if (hasevent) {
                                        GHOST_DispatchEvents(g_WS.ghost_system);
                                }