From 3982d3c171522ca730685dd7a14c7dca663d8fe3 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 1 Mar 2019 23:00:11 +1100 Subject: WM: add gesture variable to detect first execution Needed for circle select to replace the current selection. --- source/blender/windowmanager/WM_types.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender/windowmanager/WM_types.h') diff --git a/source/blender/windowmanager/WM_types.h b/source/blender/windowmanager/WM_types.h index dd4fe95db3b..7d1e13bb1e4 100644 --- a/source/blender/windowmanager/WM_types.h +++ b/source/blender/windowmanager/WM_types.h @@ -427,6 +427,8 @@ typedef struct wmGesture { /* For modal operators which may be running idle, waiting for an event to activate the gesture. * Typically this is set when the user is click-dragging the gesture (border and circle select for eg). */ uint is_active : 1; + /* Previous value of is-active (use to detect first run & edge cases). */ + uint is_active_prev : 1; /* Use for gestures that support both immediate or delayed activation. */ uint wait_for_input : 1; -- cgit v1.2.3