Changeset View
Changeset View
Standalone View
Standalone View
pie_menus_official/pie_shade_of.py
| Context not available. | |||||
| pie.prop(context.space_data, "viewport_shade", expand=True) | pie.prop(context.space_data, "viewport_shade", expand=True) | ||||
| if context.active_object: | if context.active_object: | ||||
| if(context.mode == 'EDIT_MESH'): | if context.mode == 'EDIT_MESH': | ||||
| pie.operator("MESH_OT_faces_shade_smooth") | pie.operator("MESH_OT_faces_shade_smooth") | ||||
| pie.operator("MESH_OT_faces_shade_flat") | pie.operator("MESH_OT_faces_shade_flat") | ||||
| else: | else: | ||||
| Context not available. | |||||