diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-07-18 11:06:21 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-07-18 11:07:49 +0300 |
commit | 7784cf30eb32b7ad022735012bdbb82b96b81ab3 (patch) | |
tree | b46f15918ab1658c523ee205063e3e006216c47c /source/blender/editors/space_view3d/view3d_walk.c | |
parent | 5f35682f3abf8752f0cc155e7cc209bca4f3f852 (diff) |
WM: move WM_event_is_last_mousemove to the WM API
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_walk.c')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_walk.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/source/blender/editors/space_view3d/view3d_walk.c b/source/blender/editors/space_view3d/view3d_walk.c index 542dc410bc3..c6b73056a9a 100644 --- a/source/blender/editors/space_view3d/view3d_walk.c +++ b/source/blender/editors/space_view3d/view3d_walk.c @@ -674,16 +674,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) { @@ -736,7 +726,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__ |