From 4c00771f536ffd3d2564c298c6c85c6b3275390b Mon Sep 17 00:00:00 2001 From: Colin Basnett Date: Sun, 7 Apr 2024 12:28:06 -0700 Subject: [PATCH] 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. --- io_scene_psk_psa/psk/importer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io_scene_psk_psa/psk/importer.py b/io_scene_psk_psa/psk/importer.py index 8a81ceb..ddeeab5 100644 --- a/io_scene_psk_psa/psk/importer.py +++ b/io_scene_psk_psa/psk/importer.py @@ -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