mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-19 07:20:50 +00:00
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.
This commit is contained in:
parent
78bfd30648
commit
a4da11cdb5
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue