Cleaned up logic buttons in logic space slightly.
Moved Shade Smooth/Flat from Mesh obdata panel to tools area. These kinds of operator tools aren't really allowed in the buttons window anymore - whole point of new tools area :) The only operators that are allowed in buttons window are things that act on the RNA fields, like add/remove buttons for adding vertex groups etc.
This commit is contained in:
@@ -49,14 +49,6 @@ class DATA_PT_normals(DataButtonsPanel):
|
||||
sub.itemR(mesh, "vertex_normal_flip")
|
||||
sub.itemR(mesh, "double_sided")
|
||||
|
||||
row = layout.row(align=True)
|
||||
if context.edit_object:
|
||||
row.itemO("MESH_OT_faces_shade_smooth")
|
||||
row.itemO("MESH_OT_faces_shade_flat")
|
||||
else:
|
||||
row.itemO("OBJECT_OT_shade_smooth")
|
||||
row.itemO("OBJECT_OT_shade_flat")
|
||||
|
||||
class DATA_PT_vertex_groups(DataButtonsPanel):
|
||||
__idname__ = "DATA_PT_vertex_groups"
|
||||
__label__ = "Vertex Groups"
|
||||
|
||||
Reference in New Issue
Block a user