Give the uvlayer texture a name.

This commit is contained in:
Bill Currie 2011-09-15 20:39:26 +09:00
parent 257fefca38
commit 320f613263

View file

@ -229,7 +229,7 @@ def import_mdl(operator, context, filepath):
load_skins (mdl)
mesh = bpy.data.meshes.new(mdl.name)
mesh.from_pydata(verts, [], faces)
uvlay = mesh.uv_textures.new()
uvlay = mesh.uv_textures.new(mdl.name)
for i, f in enumerate(uvlay.data):
mdl_uv = uvs[i]
for j, uv in enumerate(f.uv):