Track recent api change in svn blender.

Bah, I'm looking forward to the bmesh api stabilizing.
This commit is contained in:
Bill Currie 2012-04-24 11:04:45 +09:00
parent efd3485acf
commit c2712e6373
2 changed files with 2 additions and 2 deletions

View file

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

View file

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