From f410efbda0d7f609c1aa4387ac1b7e0421e4bb86 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 15 Mar 2022 12:59:00 +1100 Subject: UI: expose "Dolly View" in the menu This is mainly to expose the shortcut to make Dolly discoverable. --- release/scripts/startup/bl_ui/space_view3d.py | 3 ++- source/blender/editors/space_view3d/view3d_navigate_dolly.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py index 2208f7f33e7..7c4ba575f00 100644 --- a/release/scripts/startup/bl_ui/space_view3d.py +++ b/release/scripts/startup/bl_ui/space_view3d.py @@ -1248,6 +1248,7 @@ class VIEW3D_MT_view_navigation(Menu): layout.operator("view3d.zoom", text="Zoom In").delta = 1 layout.operator("view3d.zoom", text="Zoom Out").delta = -1 layout.operator("view3d.zoom_border", text="Zoom Region...") + layout.operator("view3d.dolly", text="Dolly View...") layout.operator("view3d.zoom_camera_1_to_1", text="Zoom Camera 1:1") layout.separator() @@ -7498,7 +7499,7 @@ class VIEW3D_PT_sculpt_context_menu(Panel): size_owner = ups if ups.use_unified_size else brush if size_owner.use_locked_size == 'SCENE': size = "unprojected_radius" - + UnifiedPaintPanel.prop_unified( layout, context, diff --git a/source/blender/editors/space_view3d/view3d_navigate_dolly.c b/source/blender/editors/space_view3d/view3d_navigate_dolly.c index 29ccc352950..0237ba8bdeb 100644 --- a/source/blender/editors/space_view3d/view3d_navigate_dolly.c +++ b/source/blender/editors/space_view3d/view3d_navigate_dolly.c @@ -316,7 +316,7 @@ void VIEW3D_OT_dolly(wmOperatorType *ot) ot->cancel = viewdolly_cancel; /* flags */ - ot->flag = OPTYPE_BLOCKING | OPTYPE_GRAB_CURSOR_XY; + ot->flag = OPTYPE_BLOCKING | OPTYPE_GRAB_CURSOR_XY | OPTYPE_DEPENDS_ON_CURSOR; /* properties */ view3d_operator_properties_common( -- cgit v1.2.3