diff options
author | Julien Duroure <julien.duroure@gmail.com> | 2018-12-16 01:12:01 +0300 |
---|---|---|
committer | Julien Duroure <julien.duroure@gmail.com> | 2018-12-16 01:12:01 +0300 |
commit | 618c842c3e486a7b83f81eabaa21ec4c59bafb0c (patch) | |
tree | fb13bd16b5c77d308309947ae11458faeeaf172e /io_scene_gltf2/blender | |
parent | 35eabf6bc319dd4447bc114a8d5adff4b6027ea2 (diff) |
glTF importer: Fix issue for UVMap when multiple materials on same object
Diffstat (limited to 'io_scene_gltf2/blender')
-rwxr-xr-x | io_scene_gltf2/blender/imp/gltf2_blender_primitive.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/io_scene_gltf2/blender/imp/gltf2_blender_primitive.py b/io_scene_gltf2/blender/imp/gltf2_blender_primitive.py index 93bab542..59e13391 100755 --- a/io_scene_gltf2/blender/imp/gltf2_blender_primitive.py +++ b/io_scene_gltf2/blender/imp/gltf2_blender_primitive.py @@ -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: |