diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-06-12 17:30:39 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-06-12 17:34:36 +0300 |
commit | 0d95b41f9e40b30956510146e63c365c5f3b38ab (patch) | |
tree | d4b2f5c01b41ff4c09129d82204bd082d906cb81 /release | |
parent | 7823ca06da0bd3d2c0eba83f9a98f5b1d1a6db7f (diff) |
Revert "UI: move sharp/smooth out of vertex menu"
This reverts commit d6b57436efad545347b4403610dd3af642d4378d.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d.py | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py index eb681b7cc6a..1bfed4ed952 100644 --- a/release/scripts/startup/bl_ui/space_view3d.py +++ b/release/scripts/startup/bl_ui/space_view3d.py @@ -2279,6 +2279,13 @@ class VIEW3D_MT_edit_mesh_vertices(Menu): layout.separator() + op = layout.operator("mesh.mark_sharp", text="Shade Smooth") + op.use_verts = True + op.clear = True + layout.operator("mesh.mark_sharp", text="Shade Sharp").use_verts = True + + layout.separator() + layout.operator("mesh.bevel").vertex_only = True layout.operator("mesh.convex_hull") layout.operator("mesh.vertices_smooth") @@ -2301,8 +2308,6 @@ class VIEW3D_MT_edit_mesh_edges(Menu): def draw(self, context): layout = self.layout - toolsettings = context.tool_settings - with_freestyle = bpy.app.build_options.freestyle layout.operator_context = 'INVOKE_REGION_WIN' @@ -2323,16 +2328,8 @@ class VIEW3D_MT_edit_mesh_edges(Menu): layout.separator() - if not toolsettings.mesh_select_mode[0]: - # edge mode - layout.operator("mesh.mark_sharp") - layout.operator("mesh.mark_sharp", text="Clear Sharp").clear = True - else: - # vert mode - layout.operator("mesh.mark_sharp").use_verts = True - props = layout.operator("mesh.mark_sharp", text="Clear Sharp") - props.use_verts = True - props.clear = True + layout.operator("mesh.mark_sharp") + layout.operator("mesh.mark_sharp", text="Clear Sharp").clear = True layout.separator() |