glTF-Blender-IO: Exported file fails to be imported.

Describe the bug

Hi I exported a file with the add-on and when I try to import the file into Blender I can’t because it reports an error.

The only way is opening the glb exported and save the file again with CAD Assistant in glb format and import the model saved by CAD Assistant, below the error in the python console.

I cannot share the file because it is 470mb and private

I hope you can understand from this information what the problem may be with the add-on

Python: Traceback (most recent call last):
  File "/home/paf/Software/blender-2.93.5/2.93/scripts/addons/io_scene_gltf2/__init__.py", line 1050, in execute
    return self.import_gltf2(context)
  File "/home/paf/Software/blender-2.93.5/2.93/scripts/addons/io_scene_gltf2/__init__.py", line 1064, in import_gltf2
    if self.unit_import(path, import_settings) == {'FINISHED'}:
  File "/home/paf/Software/blender-2.93.5/2.93/scripts/addons/io_scene_gltf2/__init__.py", line 1084, in unit_import
    BlenderGlTF.create(gltf_importer)
  File "/home/paf/Software/blender-2.93.5/2.93/scripts/addons/io_scene_gltf2/blender/imp/gltf2_blender_gltf.py", line 42, in create
    BlenderGlTF._create(gltf)
  File "/home/paf/Software/blender-2.93.5/2.93/scripts/addons/io_scene_gltf2/blender/imp/gltf2_blender_gltf.py", line 49, in _create
    BlenderScene.create(gltf)
  File "/home/paf/Software/blender-2.93.5/2.93/scripts/addons/io_scene_gltf2/blender/imp/gltf2_blender_scene.py", line 37, in create
    compute_vnodes(gltf)
  File "/home/paf/Software/blender-2.93.5/2.93/scripts/addons/io_scene_gltf2/blender/imp/gltf2_blender_vnode.py", line 26, in compute_vnodes
    init_vnodes(gltf)
  File "/home/paf/Software/blender-2.93.5/2.93/scripts/addons/io_scene_gltf2/blender/imp/gltf2_blender_vnode.py", line 129, in init_vnodes
    assert gltf.vnodes[child].parent is None
AssertionError

location: <unknown location>:-1

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 29 (4 by maintainers)

Most upvoted comments

Ok, so seems the problem will be fixed by #1378 Tagging the ticket as duplicate. Don’t hesitate to open a new ticket if you found another bug

I can trigger NODE_PARENT_OVERRIDE with the following setup

Outliner screenshot

  • There is a Cube object. The Cube is contained in a collection named “Collection”.
  • There is a Collection Instance of “Collection”. The Collection Instance is contained in a collection named “SuperCollection”.
  • There is a Collection Instance of “SuperCollection”.