diff options
Diffstat (limited to 'io_scene_gltf2/blender/imp/gltf2_blender_node.py')
-rwxr-xr-x | io_scene_gltf2/blender/imp/gltf2_blender_node.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/io_scene_gltf2/blender/imp/gltf2_blender_node.py b/io_scene_gltf2/blender/imp/gltf2_blender_node.py index 219399ea..ed164a1e 100755 --- a/io_scene_gltf2/blender/imp/gltf2_blender_node.py +++ b/io_scene_gltf2/blender/imp/gltf2_blender_node.py @@ -200,7 +200,7 @@ class BlenderNode(): if not (0 <= pynode.mesh < len(gltf.data.meshes)): # Avoid traceback for invalid gltf file: invalid reference to meshes array # So return an empty blender object) - return bpy.data.objects.new(vnode.name or mesh.name, None) + return bpy.data.objects.new(vnode.name or "Invalid Mesh Index", None) pymesh = gltf.data.meshes[pynode.mesh] # Key to cache the Blender mesh by. |