diff options
author | Pablo Dobarro <pablodp606@gmail.com> | 2020-10-21 18:44:00 +0300 |
---|---|---|
committer | Dalai Felinto <dalai@blender.org> | 2020-10-21 19:17:36 +0300 |
commit | 7ff6bfd1e0af67d2e583d12ce5aee5d2bf8ef96e (patch) | |
tree | 44e6816f47bf51c0d019ef582f393510fb62cb29 /source/blender/windowmanager/WM_types.h | |
parent | 1b577d0d6d4f6517ae2a22edd92a0c4cff4b2255 (diff) |
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
Diffstat (limited to 'source/blender/windowmanager/WM_types.h')
-rw-r--r-- | source/blender/windowmanager/WM_types.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 |