mirror of
https://github.com/DarklightGames/io_scene_psk_psa.git
synced 2024-11-24 06:50:13 +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:
parent
c7b23e8c0d
commit
4c00771f53
@ -171,7 +171,7 @@ def import_psk(psk: Psk, context, options: PskImportOptions) -> PskImportResult:
|
|||||||
|
|
||||||
# TEXTURE COORDINATES
|
# TEXTURE COORDINATES
|
||||||
uv_layer_data_index = 0
|
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):
|
for face_index, face in enumerate(psk.faces):
|
||||||
if face_index in invalid_face_indices:
|
if face_index in invalid_face_indices:
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user