mirror of
https://github.com/nrgsille76/io_scene_max.git
synced 2025-07-22 18:29:24 +00:00
Import_max: Avoid index error in texture map
Avoid index error in texture map
This commit is contained in:
@ -1515,7 +1515,7 @@ def create_shape(context, settings, node, mesh, mat):
|
||||
if name is not None:
|
||||
name = name.data
|
||||
meshobject = draw_shape(name, mesh, mesh.faces)
|
||||
if ('UV' in obtypes and mesh.maps):
|
||||
if ('UV' in obtypes and len(mesh.maps) == len(mesh.cords)):
|
||||
for idx, uvm in enumerate(mesh.maps):
|
||||
select = idx if len(mesh.cords[idx]) <= len(mesh.verts) else 0
|
||||
meshobject = draw_map(meshobject, mesh.cords[select], mesh.uvids[select])
|
||||
|
Reference in New Issue
Block a user