diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-04-14 11:34:07 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-04-14 11:34:07 +0300 |
commit | 3bef5d15d8c0a3a23922c0658ea4e0654199f0b4 (patch) | |
tree | b4e4a386d00c0cc29c70a3376fbbc9cf61e9c807 /release/scripts | |
parent | 0fa7e1efbe244174e74dcbafbe50d7003a907ef6 (diff) |
UI: add spin to extrude menu
This tool wasn't accessible anywhere in the interface
(besides the interactive tool).
Add to extrude since it's a kind of extrusion.
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py index 167091815b4..f38bbb46f85 100644 --- a/release/scripts/startup/bl_ui/space_view3d.py +++ b/release/scripts/startup/bl_ui/space_view3d.py @@ -3879,6 +3879,8 @@ class VIEW3D_MT_edit_mesh_extrude(Menu): return menu def draw(self, context): + from math import pi + layout = self.layout layout.operator_context = 'INVOKE_REGION_WIN' @@ -3888,6 +3890,7 @@ class VIEW3D_MT_edit_mesh_extrude(Menu): layout.separator() layout.operator("mesh.extrude_repeat") + layout.operator("mesh.spin").angle = pi * 2 class VIEW3D_MT_edit_mesh_vertices(Menu): |