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_armature.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_armature.c')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_gizmo_armature.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/space_view3d/view3d_gizmo_armature.c b/source/blender/editors/space_view3d/view3d_gizmo_armature.c index 3ea127b364f..b24b678cb7a 100644 --- a/source/blender/editors/space_view3d/view3d_gizmo_armature.c +++ b/source/blender/editors/space_view3d/view3d_gizmo_armature.c @@ -220,6 +220,7 @@ void VIEW3D_GGT_armature_spline(wmGizmoGroupType *gzgt) gzgt->poll = WIDGETGROUP_armature_spline_poll; gzgt->setup = WIDGETGROUP_armature_spline_setup; + gzgt->setup_keymap = WM_gizmogroup_setup_keymap_generic_drag; gzgt->refresh = WIDGETGROUP_armature_spline_refresh; } |