Merge branch 'master' into blender2.8
[blender.git] / source / blender / editors / space_view3d / view3d_walk.c
index 71a4980d4a6f6f1e36d720670febc5694f71e78c..812e7eba758596c1b774230461cbe21c4faee256 100644 (file)
@@ -687,16 +687,6 @@ static int walkEnd(bContext *C, WalkInfo *walk)
        return OPERATOR_CANCELLED;
 }
 
-static bool wm_event_is_last_mousemove(const wmEvent *event)
-{
-       while ((event = event->next)) {
-               if (ELEM(event->type, MOUSEMOVE, INBETWEEN_MOUSEMOVE)) {
-                       return false;
-               }
-       }
-       return true;
-}
-
 static void walkEvent(bContext *C, wmOperator *op, WalkInfo *walk, const wmEvent *event)
 {
        if (event->type == TIMER && event->customdata == walk->timer) {
@@ -749,7 +739,7 @@ static void walkEvent(bContext *C, wmOperator *op, WalkInfo *walk, const wmEvent
                        }
                        else
 #endif
-                       if (wm_event_is_last_mousemove(event)) {
+                       if (WM_event_is_last_mousemove(event)) {
                                wmWindow *win = CTX_wm_window(C);
 
 #ifdef __APPLE__