Mesh: Replace auto smooth with node group #108014
|
@ -2573,7 +2573,8 @@ class VIEW3D_MT_object(Menu):
|
|||
layout.separator()
|
||||
|
||||
layout.operator("object.shade_smooth")
|
||||
layout.operator("object.shade_smooth_by_angle")
|
||||
if context.object and context.object.type == 'MESH':
|
||||
layout.operator("object.shade_smooth_by_angle")
|
||||
layout.operator("object.shade_flat")
|
||||
|
||||
layout.separator()
|
||||
|
@ -2817,7 +2818,8 @@ class VIEW3D_MT_object_context_menu(Menu):
|
|||
if obj is not None:
|
||||
if obj.type in {'MESH', 'CURVE', 'SURFACE'}:
|
||||
layout.operator("object.shade_smooth")
|
||||
HooglyBoogly marked this conversation as resolved
Outdated
|
||||
layout.operator("object.shade_smooth_by_angle")
|
||||
if obj.type == 'MESH':
|
||||
layout.operator("object.shade_smooth_by_angle")
|
||||
layout.operator("object.shade_flat")
|
||||
|
||||
layout.separator()
|
||||
|
|
Loading…
Reference in New Issue
Shouldn't the
by_angle
operator only be shown for mesh objects? (the operator looks only to deal with meshes).