diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2014-04-16 17:18:14 +0400 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2014-04-16 17:26:48 +0400 |
commit | 7d45ddae33f41578e07970c95bac5f916819e27d (patch) | |
tree | cb95a514c82afb3655c572befcc5fc8e85f93a9f /release | |
parent | d1b1d194dc9cc741d87dc63e701402de0776c694 (diff) |
Add Edge sharp/smooth to 3DView shading panel, as well as new Vert sharp/smooth.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d.py | 9 | ||||
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d_toolbar.py | 12 |
2 files changed, 19 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py index 56f612abe3a..52f987be796 100644 --- a/release/scripts/startup/bl_ui/space_view3d.py +++ b/release/scripts/startup/bl_ui/space_view3d.py @@ -2168,6 +2168,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") @@ -2211,7 +2218,7 @@ class VIEW3D_MT_edit_mesh_edges(Menu): layout.separator() - layout.operator("mesh.mark_sharp").clear = False + layout.operator("mesh.mark_sharp") layout.operator("mesh.mark_sharp", text="Clear Sharp").clear = True layout.separator() diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py index 4e9dc1163e2..2e130a85aae 100644 --- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py +++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py @@ -385,10 +385,20 @@ class VIEW3D_PT_tools_shading(View3DPanel, Panel): layout = self.layout col = layout.column(align=True) - col.label(text="Shading:") + col.label(text="Faces:") row = col.row(align=True) row.operator("mesh.faces_shade_smooth", text="Smooth") row.operator("mesh.faces_shade_flat", text="Flat") + col.label(text="Edges:") + row = col.row(align=True) + row.operator("mesh.mark_sharp", text="Smooth").clear = True + row.operator("mesh.mark_sharp", text="Sharp") + col.label(text="Vertices:") + row = col.row(align=True) + op = row.operator("mesh.mark_sharp", text="Smooth") + op.use_verts = True + op.clear = True + row.operator("mesh.mark_sharp", text="Sharp").use_verts = True col = layout.column(align=True) col.label(text="Normals:") |