Skip to content
Snippets Groups Projects
Commit c8445b67 authored by Julien Duroure's avatar Julien Duroure
Browse files

Fix invalid index mesh name

parent ec45566f
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,7 @@
bl_info = {
'name': 'glTF 2.0 format',
'author': 'Julien Duroure, Scurest, Norbert Nopper, Urs Hanselmann, Moritz Becher, Benjamin Schmithüsen, Jim Eckerlein, and many external contributors',
"version": (1, 8, 10),
"version": (1, 8, 11),
'blender': (3, 0, 0),
'location': 'File > Import-Export',
'description': 'Import-Export as glTF 2.0',
......
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment