mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +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
|
||||
# preventing the use of duplicate 3d vertices to allow complete freedom
|
||||
# of the UV layout.
|
||||
uvtex = active_uv(mesh)
|
||||
uvfaces = mesh.uv_layers[uvtex.name].data
|
||||
uvfaces = mesh.uv_layers.active.data
|
||||
stverts = []
|
||||
tris = []
|
||||
vertmap = [] # map mdl vert num to blender vert num (for 3d verts)
|
||||
|
|
Loading…
Reference in a new issue