[Bf-blender-cvs] [7b11558aa83] blender2.8: UI: show steps for spin tool
Campbell Barton
noreply at git.blender.org
Mon Sep 17 07:35:38 CEST 2018
Commit: 7b11558aa83c44035da2b03e67b0c64fa450dab5
Author: Campbell Barton
Date: Mon Sep 17 14:52:54 2018 +1000
Branches: blender2.8
https://developer.blender.org/rB7b11558aa83c44035da2b03e67b0c64fa450dab5
UI: show steps for spin tool
===================================================================
M release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
index 596bf7b5a45..037d8e9ca8f 100644
--- a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
@@ -612,6 +612,10 @@ class _defs_edit_mesh:
@ToolDef.from_fn
def spin():
+ def draw_settings(context, layout, tool):
+ props = tool.operator_properties("mesh.spin")
+ layout.prop(props, "steps")
+
return dict(
text="Spin",
icon="ops.mesh.spin",
@@ -620,18 +624,24 @@ class _defs_edit_mesh:
("mesh.spin", dict(),
dict(type='EVT_TWEAK_A', value='ANY')),
),
+ draw_settings=draw_settings,
)
@ToolDef.from_fn
def spin_duplicate():
+ def draw_settings(context, layout, tool):
+ props = tool.operator_properties("mesh.spin")
+ layout.prop(props, "steps")
+
return dict(
text="Spin (Duplicate)",
icon="ops.mesh.spin.duplicate",
widget=None,
keymap=(
("mesh.spin", dict(dupli=True),
- dict(type='ACTIONMOUSE', value='PRESS')),
+ dict(type='EVT_TWEAK_A', value='ANY')),
),
+ draw_settings=draw_settings,
)
@ToolDef.from_fn
More information about the Bf-blender-cvs
mailing list