diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-05-30 08:20:20 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-05-30 08:22:19 +0300 |
commit | 8778dd0c8b461780fdf9de688047d1a9c24dd641 (patch) | |
tree | 7deaca909a365188e37ce8e203e2a3ae1e6bdabe /source/blender/editors/space_view3d/view3d_gizmo_empty.c | |
parent | 0c8c1602029b5a0a34b7750c03b03fe990104c0e (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/space_view3d/view3d_gizmo_empty.c')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_gizmo_empty.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/space_view3d/view3d_gizmo_empty.c b/source/blender/editors/space_view3d/view3d_gizmo_empty.c index 6a3979ae458..a54d59b961f 100644 --- a/source/blender/editors/space_view3d/view3d_gizmo_empty.c +++ b/source/blender/editors/space_view3d/view3d_gizmo_empty.c @@ -200,6 +200,7 @@ void VIEW3D_GGT_empty_image(wmGizmoGroupType *gzgt) gzgt->poll = WIDGETGROUP_empty_image_poll; gzgt->setup = WIDGETGROUP_empty_image_setup; + gzgt->setup_keymap = WM_gizmogroup_setup_keymap_generic_drag; gzgt->refresh = WIDGETGROUP_empty_image_refresh; } |