PSK files imported with custom normals will now have Auto Smooth enabled by default (#67)
This commit is contained in:
@@ -227,6 +227,7 @@ def import_psk(psk: Psk, context, options: PskImportOptions) -> PskImportResult:
|
|||||||
for vertex_normal in psk.vertex_normals:
|
for vertex_normal in psk.vertex_normals:
|
||||||
normals.append(tuple(vertex_normal))
|
normals.append(tuple(vertex_normal))
|
||||||
mesh_data.normals_split_custom_set_from_vertices(normals)
|
mesh_data.normals_split_custom_set_from_vertices(normals)
|
||||||
|
mesh_data.use_auto_smooth = True
|
||||||
else:
|
else:
|
||||||
mesh_data.shade_smooth()
|
mesh_data.shade_smooth()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user