From c2712e637348a430ba5479f3b77a9f24da57ceb4 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Tue, 24 Apr 2012 11:04:45 +0900 Subject: [PATCH] Track recent api change in svn blender. Bah, I'm looking forward to the bmesh api stabilizing. --- tools/io_mesh_qfmdl/export_mdl.py | 2 +- tools/io_mesh_qfmdl/import_mdl.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/io_mesh_qfmdl/export_mdl.py b/tools/io_mesh_qfmdl/export_mdl.py index 77decb187..813bde7ef 100644 --- a/tools/io_mesh_qfmdl/export_mdl.py +++ b/tools/io_mesh_qfmdl/export_mdl.py @@ -103,7 +103,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. - uvfaces = mesh.uv_loop_layers[0].data + uvfaces = mesh.uv_layers[0].data stverts = [] tris = [] vertmap = [] # map mdl vert num to blender vert num (for 3d verts) diff --git a/tools/io_mesh_qfmdl/import_mdl.py b/tools/io_mesh_qfmdl/import_mdl.py index b2d4d403f..3eb689a0c 100644 --- a/tools/io_mesh_qfmdl/import_mdl.py +++ b/tools/io_mesh_qfmdl/import_mdl.py @@ -102,7 +102,7 @@ def setup_skins (mdl, uvs): load_skins (mdl) img = mdl.images[0] # use the first skin for now uvlay = mdl.mesh.uv_textures.new(mdl.name) - uvloop = mdl.mesh.uv_loop_layers[0] + uvloop = mdl.mesh.uv_layers[0] for i, texpoly in enumerate(uvlay.data): poly = mdl.mesh.polygons[i] mdl_uv = uvs[i]