From 8778dd0c8b461780fdf9de688047d1a9c24dd641 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 30 May 2019 15:20:20 +1000 Subject: 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 --- source/blender/editors/space_view3d/view3d_gizmo_camera.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/editors/space_view3d/view3d_gizmo_camera.c') diff --git a/source/blender/editors/space_view3d/view3d_gizmo_camera.c b/source/blender/editors/space_view3d/view3d_gizmo_camera.c index 5fe62a74d4b..11a8988f83b 100644 --- a/source/blender/editors/space_view3d/view3d_gizmo_camera.c +++ b/source/blender/editors/space_view3d/view3d_gizmo_camera.c @@ -315,6 +315,7 @@ void VIEW3D_GGT_camera(wmGizmoGroupType *gzgt) gzgt->poll = WIDGETGROUP_camera_poll; gzgt->setup = WIDGETGROUP_camera_setup; + gzgt->setup_keymap = WM_gizmogroup_setup_keymap_generic_drag; gzgt->refresh = WIDGETGROUP_camera_refresh; gzgt->message_subscribe = WIDGETGROUP_camera_message_subscribe; } -- cgit v1.2.3