diff options
author | Philipp Oeser <info@graphics-engineer.com> | 2018-11-25 12:36:40 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2018-11-25 12:41:22 +0300 |
commit | be2df5249105015aaafb06def0d1279c559c56ff (patch) | |
tree | 1650245834305a17ae2fb946106b63d715fa6b3d /io_scene_gltf2/blender/exp/gltf2_blender_gather_texture_info.py | |
parent | ca90ba2b753a846158d0723dfcb0c6eb1fae3288 (diff) |
glTF exporter: fix getting uv_layer in certain cases
uv_textures > uv_layers
Diffstat (limited to 'io_scene_gltf2/blender/exp/gltf2_blender_gather_texture_info.py')
-rwxr-xr-x | io_scene_gltf2/blender/exp/gltf2_blender_gather_texture_info.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/io_scene_gltf2/blender/exp/gltf2_blender_gather_texture_info.py b/io_scene_gltf2/blender/exp/gltf2_blender_gather_texture_info.py index 149a2a84..225e686b 100755 --- a/io_scene_gltf2/blender/exp/gltf2_blender_gather_texture_info.py +++ b/io_scene_gltf2/blender/exp/gltf2_blender_gather_texture_info.py @@ -85,7 +85,7 @@ def __gather_tex_coord(blender_shader_sockets_or_texture_slots, export_settings) # Try to gather map index. for blender_mesh in bpy.data.meshes: - texCoordIndex = blender_mesh.uv_textures.find(input_node.uv_map) + texCoordIndex = blender_mesh.uv_layers.find(input_node.uv_map) if texCoordIndex >= 0: return texCoordIndex |