Use the correct method for finding the active uv layer.

Problem found by Hectate in #qc (thank you!).
This commit is contained in:
Bill Currie 2013-03-04 10:50:42 +09:00
parent 9992a08285
commit a6bc5e9d29

View file

@ -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)