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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user