diff options
Diffstat (limited to 'io_scene_gltf2/blender/exp/gltf2_blender_gather_nodes.py')
-rwxr-xr-x | io_scene_gltf2/blender/exp/gltf2_blender_gather_nodes.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/io_scene_gltf2/blender/exp/gltf2_blender_gather_nodes.py b/io_scene_gltf2/blender/exp/gltf2_blender_gather_nodes.py index ba303c42..1889154d 100755 --- a/io_scene_gltf2/blender/exp/gltf2_blender_gather_nodes.py +++ b/io_scene_gltf2/blender/exp/gltf2_blender_gather_nodes.py @@ -241,7 +241,7 @@ def __gather_mesh(blender_object, export_settings): blender_mesh = blender_object.data skip_filter = False - material_names = tuple([ms.material.name for ms in blender_object.material_slots]) + material_names = tuple([ms.material.name for ms in blender_object.material_slots if ms.material is not None]) result = gltf2_blender_gather_mesh.gather_mesh(blender_mesh.name, vertex_groups, modifiers, |