From e0acd3125966474093277b652bfd07b6adc3bf2b Mon Sep 17 00:00:00 2001 From: lisyarus Date: Mon, 20 Jun 2022 22:11:43 +0300 Subject: [PATCH] Fix texture coordinates in blender model exporter --- tools/convert-mesh/bin/convert-mesh.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/convert-mesh/bin/convert-mesh.py b/tools/convert-mesh/bin/convert-mesh.py index 8cb4e270..8a6f537e 100644 --- a/tools/convert-mesh/bin/convert-mesh.py +++ b/tools/convert-mesh/bin/convert-mesh.py @@ -68,7 +68,7 @@ def append_vertex(v, n): if colors: vertex_colors.append(tuple(colors[li].color)) if texcoords: - vertex_texcoords.append(tuple(texcoords[li].uv)) + vertex_texcoords.append((texcoords[li].uv[0], 1.0 - texcoords[li].uv[1])) if armature: weights = [] for g in v.groups: