From 73fce85791fff81dd404519dd8c52600bc74ae37 Mon Sep 17 00:00:00 2001 From: Pyogenics Date: Tue, 10 Dec 2024 21:13:10 +0000 Subject: [PATCH] Flip y UV coordinate to match blender --- io_scene_a3d/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/io_scene_a3d/__init__.py b/io_scene_a3d/__init__.py index 809e880..b45b757 100644 --- a/io_scene_a3d/__init__.py +++ b/io_scene_a3d/__init__.py @@ -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))