diff --git a/tools/io_mesh_qfmdl/export_mdl.py b/tools/io_mesh_qfmdl/export_mdl.py index fafb412b3..1881f2b3c 100644 --- a/tools/io_mesh_qfmdl/export_mdl.py +++ b/tools/io_mesh_qfmdl/export_mdl.py @@ -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)