From a4da11cdb50cca577b597569377c0af7eb701561 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Tue, 7 Aug 2012 10:26:35 +0900 Subject: [PATCH] Correctly handle multiple vertices sharing a UV coordinate. Need to use both UV coordinate and vertex index to find unique combinations. This should fix leileilol's broken meshes. --- tools/io_mesh_qfmdl/export_mdl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/io_mesh_qfmdl/export_mdl.py b/tools/io_mesh_qfmdl/export_mdl.py index 600a2f1ee..8da63ed86 100644 --- a/tools/io_mesh_qfmdl/export_mdl.py +++ b/tools/io_mesh_qfmdl/export_mdl.py @@ -119,7 +119,7 @@ def build_tris(mesh): uv.reverse() tv = [] for v, u in map(lambda a,b: (a,b), fv, uv): - k = tuple(u) + k = v, tuple(u) if k not in uvdict: uvdict[k] = len(stverts) vertmap.append(v)