[Bf-blender-cvs] [f410efbda0d] master: UI: expose "Dolly View" in the menu
Campbell Barton
noreply at git.blender.org
Tue Mar 15 03:01:31 CET 2022
Commit: f410efbda0d7f609c1aa4387ac1b7e0421e4bb86
Author: Campbell Barton
Date: Tue Mar 15 12:59:00 2022 +1100
Branches: master
https://developer.blender.org/rBf410efbda0d7f609c1aa4387ac1b7e0421e4bb86
UI: expose "Dolly View" in the menu
This is mainly to expose the shortcut to make Dolly discoverable.
===================================================================
M release/scripts/startup/bl_ui/space_view3d.py
M source/blender/editors/space_view3d/view3d_navigate_dolly.c
===================================================================
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(
More information about the Bf-blender-cvs
mailing list