From 7e6911c709a044bccdcd147995c3d49a2a7b78a5 Mon Sep 17 00:00:00 2001 From: Colin Basnett Date: Mon, 22 Jan 2024 11:26:09 -0800 Subject: [PATCH] PSK files imported with custom normals will now have `Auto Smooth` enabled by default (#67) --- io_scene_psk_psa/psk/importer.py | 1 + 1 file changed, 1 insertion(+) diff --git a/io_scene_psk_psa/psk/importer.py b/io_scene_psk_psa/psk/importer.py index c701db9..f07fd11 100644 --- a/io_scene_psk_psa/psk/importer.py +++ b/io_scene_psk_psa/psk/importer.py @@ -227,6 +227,7 @@ def import_psk(psk: Psk, context, options: PskImportOptions) -> PskImportResult: for vertex_normal in psk.vertex_normals: normals.append(tuple(vertex_normal)) mesh_data.normals_split_custom_set_from_vertices(normals) + mesh_data.use_auto_smooth = True else: mesh_data.shade_smooth()