mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-21 09:51:41 +00:00
Track recent api change in svn blender.
Bah, I'm looking forward to the bmesh api stabilizing.
This commit is contained in:
parent
efd3485acf
commit
c2712e6373
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue