From 7ff6bfd1e0af67d2e583d12ce5aee5d2bf8ef96e Mon Sep 17 00:00:00 2001 From: Pablo Dobarro Date: Wed, 21 Oct 2020 17:44:00 +0200 Subject: UI: Allow changing the active side of line gestures Line gesture use always the right side of the line as active (the area of the mesh that is going to be modified) by default. This adds the ability to change the active side when the line gesture is active by pressing the F key. This allows more freedom to position the line after starting the gestures, as it won't be required to cancel the operation or undo if the line was used in the wrong direction. Reviewed By: Severin Differential Revision: https://developer.blender.org/D9301 --- source/blender/windowmanager/WM_types.h | 3 +++ 1 file changed, 3 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 b23446e0dce..1b693160e56 100644 --- a/source/blender/windowmanager/WM_types.h +++ b/source/blender/windowmanager/WM_types.h @@ -503,6 +503,9 @@ typedef struct wmGesture { /** For gestures that support snapping, stores if snapping is enabled using the modal keymap * toggle. */ uint use_snap : 1; + /** For gestures that support flip, stores if flip is enabled using the modal keymap + * toggle. */ + uint use_flip : 1; /** * customdata -- cgit v1.2.3