Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-06-22 16:07:11 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-06-22 16:23:56 +0300
commit48e70ab848b58e43596a08d8157a0b85439a1bbe (patch)
tree60d7e5c341cb2fdd7bd5cc751f59096c7eb7ee2c /release
parent3c828c29b34976211f797c422dd039d5e9fbaac4 (diff)
Add depth and orientation options to 3D cursor tool
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/space_toolsystem_toolbar.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
index c1331425572..933519eff4a 100644
--- a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
@@ -83,6 +83,12 @@ def generate_from_brushes_ex(
class _defs_view3d_generic:
@ToolDef.from_fn
def cursor():
+ def draw_settings(context, layout, tool):
+ wm = context.window_manager
+ props = tool.operator_properties("view3d.cursor3d")
+ layout.prop(props, "use_depth")
+ layout.prop(props, "orientation")
+
return dict(
text="Cursor",
icon="ops.generic.cursor",
@@ -93,6 +99,7 @@ class _defs_view3d_generic:
dict(type='EVT_TWEAK_A', value='ANY'),
),
),
+ draw_settings=draw_settings,
)
@ToolDef.from_fn