Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Dobarro <pablodp606@gmail.com>2020-10-20 23:16:55 +0300
committerPablo Dobarro <pablodp606@gmail.com>2020-10-20 23:18:01 +0300
commit17cb2a6da0c88eb509448447e10bc73a38398895 (patch)
tree037e63aee0466fb19ab21ca7bd7deef9d995af5f /source/blender/windowmanager/WM_types.h
parentb55c44e3eda0165b67b1284336eaedc02198844e (diff)
UI: Move gesture selection with spacebar
This patch adds a modal key to move the selection box/lasso/line while drawing it. It also sets "repeat": False on the animation playback key to prevent accidental playback if the spacebar is released after the mouse button. Reviewed By: #user_interface, pablovazquez, Severin Differential Revision: https://developer.blender.org/D9227
Diffstat (limited to 'source/blender/windowmanager/WM_types.h')
-rw-r--r--source/blender/windowmanager/WM_types.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/windowmanager/WM_types.h b/source/blender/windowmanager/WM_types.h
index acd72a4b1fd..05a35e030ff 100644
--- a/source/blender/windowmanager/WM_types.h
+++ b/source/blender/windowmanager/WM_types.h
@@ -498,6 +498,8 @@ typedef struct wmGesture {
uint is_active_prev : 1;
/** Use for gestures that support both immediate or delayed activation. */
uint wait_for_input : 1;
+ /** Use for gestures that can be moved, like box selection */
+ uint move : 1;
/**
* customdata