mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-04-25 02:52:06 +00:00
Use the correct method for finding the active uv layer.
Problem found by Hectate in #qc (thank you!).
This commit is contained in:
parent
9992a08285
commit
a6bc5e9d29
1 changed files with 1 additions and 2 deletions
|
@ -111,8 +111,7 @@ def build_tris(mesh):
|
||||||
# the layout. However, there seems to be nothing in the mdl format
|
# the layout. However, there seems to be nothing in the mdl format
|
||||||
# preventing the use of duplicate 3d vertices to allow complete freedom
|
# preventing the use of duplicate 3d vertices to allow complete freedom
|
||||||
# of the UV layout.
|
# of the UV layout.
|
||||||
uvtex = active_uv(mesh)
|
uvfaces = mesh.uv_layers.active.data
|
||||||
uvfaces = mesh.uv_layers[uvtex.name].data
|
|
||||||
stverts = []
|
stverts = []
|
||||||
tris = []
|
tris = []
|
||||||
vertmap = [] # map mdl vert num to blender vert num (for 3d verts)
|
vertmap = [] # map mdl vert num to blender vert num (for 3d verts)
|
||||||
|
|
Loading…
Reference in a new issue