glTF importer: Fix issue for UVMap when multiple materials on same object

This commit is contained in:
Julien Duroure 2018-12-15 23:12:01 +01:00
parent 35eabf6bc3
commit 618c842c3e
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ class BlenderPrimitive():
for texcoord in [attr for attr in pyprimitive.attributes.keys() if attr[:9] == "TEXCOORD_"]:
if texcoord not in mesh.uv_layers:
mesh.uv_layers.new(name=texcoord)
pyprimitive.blender_texcoord[int(texcoord[9:])] = texcoord
pyprimitive.blender_texcoord[int(texcoord[9:])] = texcoord
texcoord_data = BinaryData.get_data_from_accessor(gltf, pyprimitive.attributes[texcoord])
for poly in mesh.polygons: