mirror of
https://github.com/DarklightGames/io_scene_psk_psa.git
synced 2025-02-12 08:22:58 +01:00
PSK files imported with custom normals will now have Auto Smooth
enabled by default (#67)
This commit is contained in:
parent
30586fa8bb
commit
7e6911c709
@ -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()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user