Mesh: Replace auto smooth with node group #108014
|
@ -186,6 +186,23 @@ class DATA_PT_context_mesh(MeshButtonsPanel, Panel):
|
|||
layout.template_ID(space, "pin_id")
|
||||
|
||||
|
||||
class DATA_PT_normals(MeshButtonsPanel, Panel):
|
||||
bl_label = "Normals"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_WORKBENCH', 'BLENDER_WORKBENCH_NEXT'}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
layout.use_property_split = True
|
||||
|
||||
mesh = context.mesh
|
||||
|
||||
if mesh.has_custom_normals:
|
||||
col.operator("mesh.customdata_custom_splitnormals_clear", icon='X')
|
||||
else:
|
||||
col.operator("mesh.customdata_custom_splitnormals_add", icon='ADD')
|
||||
|
||||
|
||||
class DATA_PT_texture_space(MeshButtonsPanel, Panel):
|
||||
bl_label = "Texture Space"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
|
@ -469,11 +486,6 @@ class DATA_PT_customdata(MeshButtonsPanel, Panel):
|
|||
col.operator("mesh.customdata_mask_clear", icon='X')
|
||||
col.operator("mesh.customdata_skin_clear", icon='X')
|
||||
|
||||
if me.has_custom_normals:
|
||||
col.operator("mesh.customdata_custom_splitnormals_clear", icon='X')
|
||||
else:
|
||||
col.operator("mesh.customdata_custom_splitnormals_add", icon='ADD')
|
||||
|
||||
if me.has_bevel_weight_edge:
|
||||
col.operator("mesh.customdata_bevel_weight_edge_clear", icon='X')
|
||||
else:
|
||||
|
@ -716,6 +728,7 @@ classes = (
|
|||
DATA_PT_vertex_colors,
|
||||
DATA_PT_face_maps,
|
||||
DATA_PT_mesh_attributes,
|
||||
DATA_PT_normals,
|
||||
DATA_PT_texture_space,
|
||||
DATA_PT_remesh,
|
||||
DATA_PT_customdata,
|
||||
|
|
Loading…
Reference in New Issue