diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-09-27 05:23:01 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-09-27 05:23:01 +0300 |
commit | 08f9cd3218de3c256dbdf7d100e8fa95d1312486 (patch) | |
tree | 9437fb355c661f1ce8d2dc5493ce1f0a72232bfb | |
parent | e2b6a593176f8d19aa5f791020e4569842a3f891 (diff) |
Tool System: expose rotate-source for click-extrude
-rw-r--r-- | release/scripts/startup/bl_ui/space_toolsystem_toolbar.py | 5 |
1 files changed, 5 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 349fd4de2b3..33ec44b47dc 100644 --- a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py +++ b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py @@ -720,6 +720,10 @@ class _defs_edit_mesh: @ToolDef.from_fn def extrude_cursor(): + def draw_settings(context, layout, tool): + props = tool.operator_properties("mesh.dupli_extrude_cursor") + layout.prop(props, "rotate_source") + return dict( text="Extrude to Cursor", icon="ops.mesh.dupli_extrude_cursor", @@ -727,6 +731,7 @@ class _defs_edit_mesh: keymap=( ("mesh.dupli_extrude_cursor", dict(), dict(type='ACTIONMOUSE', value='PRESS')), ), + draw_settings=draw_settings, ) @ToolDef.from_fn |