mirror of
https://github.com/MapMakersAndProgrammers/io_scene_a3d.git
synced 2025-10-26 01:49:13 -07:00
Flip y UV coordinate to match blender
This commit is contained in:
@@ -89,7 +89,8 @@ class ImportA3D(Operator, ImportHelper):
|
||||
index = submesh.indices[indexI]
|
||||
blenderVertexIndices.append(indexI)
|
||||
blenderVertices += list(coordinates[index])
|
||||
blenderUV1s.append(uv1[index])
|
||||
x, y = uv1[index]
|
||||
blenderUV1s.append((x, 1-y)) #TODO: make this optional in the import menu?
|
||||
#blenderUV2s += uv2[index]
|
||||
me.vertices.foreach_set("co", blenderVertices)
|
||||
me.polygons.foreach_set("loop_start", range(0, len(blenderVertices)//3, 3))
|
||||
|
||||
Reference in New Issue
Block a user