New Object Display Pie (Shift+W) #26

Merged
Demeter Dzadik merged 4 commits from object_display_pie into main 2024-09-08 13:07:19 +02:00
Showing only changes of commit 4342432e60 - Show all commits

View File

@ -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):