WM: refactor gestures for use as tools
[blender.git] / source / blender / windowmanager / intern / wm_gesture.c
index 11f39dc934ca50a6e3d3c7c6389b784f0fa37b23..b63962ffce2d46cf32bf15990441eb6dfb51871d 100644 (file)
@@ -72,6 +72,7 @@ wmGesture *WM_gesture_new(bContext *C, const wmEvent *event, int type)
        gesture->event_type = event->type;
        gesture->swinid = ar->swinid;    /* means only in area-region context! */
        gesture->userdata_free = true;   /* Free if userdata is set. */
+       gesture->modal_state = GESTURE_MODAL_NOP;
        
        wm_subwindow_origin_get(window, gesture->swinid, &sx, &sy);