1
0
mirror of https://github.com/DarklightGames/io_scene_psk_psa.git synced 2024-11-23 22:40:59 +01:00

Imported PSKs will now have the first UV layer named UVMap instead of VTXW0000

This is because it caused issues for some folks when joining meshes made
in Blender and meshes imported from a PSK. There would be two UV maps,
and if the user wanted to make them share the same UVMap, they would
need to go out of their way to fix the naming of the UV layers to match.
This commit is contained in:
Colin Basnett 2024-04-07 12:28:06 -07:00
parent c7b23e8c0d
commit 4c00771f53

View File

@ -171,7 +171,7 @@ def import_psk(psk: Psk, context, options: PskImportOptions) -> PskImportResult:
# TEXTURE COORDINATES
uv_layer_data_index = 0
uv_layer = mesh_data.uv_layers.new(name='VTXW0000')
uv_layer = mesh_data.uv_layers.new(name='UVMap')
for face_index, face in enumerate(psk.faces):
if face_index in invalid_face_indices:
continue