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:
authorCampbell Barton <ideasman42@gmail.com>2019-05-30 08:20:20 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-05-30 08:22:19 +0300
commit8778dd0c8b461780fdf9de688047d1a9c24dd641 (patch)
tree7deaca909a365188e37ce8e203e2a3ae1e6bdabe /source/blender/editors/gizmo_library
parent0c8c1602029b5a0a34b7750c03b03fe990104c0e (diff)
Gizmo: activate some gizmos on drag instead of press
Use drag-only keyamp to adjust gizmos which use drag motion to change a value. By default gizmos still activate on press. This allows for left click select to be used with transform without the gizmos getting in the way. Even though this isn't necessary for right click select it allows click events to pass through and be used by tools which can be useful. Resolves T63996
Diffstat (limited to 'source/blender/editors/gizmo_library')
-rw-r--r--source/blender/editors/gizmo_library/gizmo_group_types/value2d_gizmo_group.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/gizmo_library/gizmo_group_types/value2d_gizmo_group.c b/source/blender/editors/gizmo_library/gizmo_group_types/value2d_gizmo_group.c
index 3b61aed5e27..2749eab0548 100644
--- a/source/blender/editors/gizmo_library/gizmo_group_types/value2d_gizmo_group.c
+++ b/source/blender/editors/gizmo_library/gizmo_group_types/value2d_gizmo_group.c
@@ -152,6 +152,7 @@ static void WM_GGT_value_operator_redo(wmGizmoGroupType *gzgt)
gzgt->gzmap_params.regionid = RGN_TYPE_WINDOW;
gzgt->setup = WIDGETGROUP_value_operator_redo_setup;
+ gzgt->setup_keymap = WM_gizmogroup_setup_keymap_generic_drag;
gzgt->refresh = WIDGETGROUP_value_operator_redo_refresh;
}