New Object Display Pie (Shift+W) #26
@ -11,6 +11,10 @@ class PIE_MT_object_display(Menu):
|
||||
bl_idname = "PIE_MT_object_display"
|
||||
bl_label = "Object Display"
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
return context.active_object
|
||||
|
||||
def draw(self, context):
|
||||
pie = self.layout.menu_pie()
|
||||
obj = context.active_object
|
||||
@ -71,8 +75,9 @@ class OBJECT_MT_set_object_shading(Menu):
|
||||
if context.active_object.type == 'MESH':
|
||||
layout.operator('object.shade_auto_smooth', icon='MODIFIER')
|
||||
|
||||
layout.separator()
|
||||
layout.operator('OBJECT_OT_reset_normals', icon='LOOP_BACK')
|
||||
if context.active_object.type == 'MESH':
|
||||
layout.separator()
|
||||
layout.operator('OBJECT_OT_reset_normals', icon='LOOP_BACK')
|
||||
|
||||
|
||||
class OBJECT_OT_reset_normals(Operator):
|
||||
|
Loading…
Reference in New Issue
Block a user