UI: Make Mesh shading menu consistent with the other menus

This commit is contained in:
Vuk Gardašević 2018-06-26 14:29:21 +02:00 committed by Pablo Vazquez
parent 25caedc4ba
commit 43d27095a3
1 changed files with 13 additions and 9 deletions

View File

@ -2973,17 +2973,21 @@ class VIEW3D_MT_edit_mesh_shading(Menu):
def draw(self, context):
layout = self.layout
layout.label(text="Faces:")
layout.operator("mesh.faces_shade_smooth", text="Smooth")
layout.operator("mesh.faces_shade_flat", text="Flat")
layout.label(text="Edges:")
layout.operator("mesh.mark_sharp", text="Smooth").clear = True
layout.operator("mesh.mark_sharp", text="Sharp")
layout.label(text="Vertices:")
props = layout.operator("mesh.mark_sharp", text="Smooth")
layout.operator("mesh.faces_shade_smooth", text="Smooth Faces")
layout.operator("mesh.faces_shade_flat", text="Flat Faces")
layout.separator()
layout.operator("mesh.mark_sharp", text="Smooth Edges").clear = True
layout.operator("mesh.mark_sharp", text="Sharp Edges")
layout.separator()
props = layout.operator("mesh.mark_sharp", text="Smooth Vertices")
props.use_verts = True
props.clear = True
layout.operator("mesh.mark_sharp", text="Sharp").use_verts = True
layout.operator("mesh.mark_sharp", text="Sharp Vertices").use_verts = True
class VIEW3D_MT_edit_mesh_weights(Menu):