diff options
author | Campbell Barton <campbell@blender.org> | 2022-03-15 04:59:00 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-03-15 05:01:10 +0300 |
commit | f410efbda0d7f609c1aa4387ac1b7e0421e4bb86 (patch) | |
tree | 2da7ac819d19fea7bb2cb3cac06d419cd0f548b6 | |
parent | fc259d4c30cba9427b81e66c777b3f165f7ea5ac (diff) |
UI: expose "Dolly View" in the menu
This is mainly to expose the shortcut to make Dolly discoverable.
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d.py | 3 | ||||
-rw-r--r-- | 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( |