Mesh: Replace auto smooth with node group #108014

Merged
Hans Goudey merged 149 commits from HooglyBoogly/blender:refactor-mesh-corner-normals-lazy into main 2023-10-20 16:54:20 +02:00
1 changed files with 4 additions and 2 deletions
Showing only changes of commit 08947d2b8e - Show all commits

View File

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

Shouldn't the by_angle operator only be shown for mesh objects? (the operator looks only to deal with meshes).

Shouldn't the `by_angle` operator only be shown for mesh objects? (the operator looks only to deal with meshes).
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()