UI: expose "Dolly View" in the menu

This is mainly to expose the shortcut to make Dolly discoverable.
This commit is contained in:
Campbell Barton 2022-03-15 12:59:00 +11:00
parent fc259d4c30
commit f410efbda0
2 changed files with 3 additions and 2 deletions

View File

@ -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,

View File

@ -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(