Open bachirelkhoury opened 3 weeks ago
Describe the bug When exporting a scene where a mesh has a Vertex Color Attribute assigned, the Exception is being thrown.
export_scene
Python: Traceback (most recent call last): File "/Applications/Blender.app/Contents/Resources/4.2/scripts/modules/bpy/ops.py", line 109, in __call__ ret = _op_call(self.idname_py(), kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ RuntimeError: Error: Python: Traceback (most recent call last): File "/Applications/Blender.app/Contents/Resources/4.2/scripts/addons_core/io_scene_gltf2/__init__.py", line 1288, in execute res = gltf2_blender_export.save(context, export_settings) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Applications/Blender.app/Contents/Resources/4.2/scripts/addons_core/io_scene_gltf2/blender/exp/gltf2_blender_export.py", line 37, in save json, buffer = __export(export_settings) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Applications/Blender.app/Contents/Resources/4.2/scripts/addons_core/io_scene_gltf2/blender/exp/gltf2_blender_export.py", line 65, in __export __detect_animated_extensions(exporter.glTF.to_dict(), export_settings) ^^^^^^^^^^^^^^^^^^^^^^^ File "/Applications/Blender.app/Contents/Resources/4.2/scripts/addons_core/io_scene_gltf2/io/com/gltf2_io.py", line 1180, in to_dict result["accessors"] = from_union([lambda x: from_list(lambda x: to_class(Accessor, x), x), from_none], ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Applications/Blender.app/Contents/Resources/4.2/scripts/addons_core/io_scene_gltf2/io/com/gltf2_io.py", line 46, in from_union assert False AssertionError Location: /Applications/Blender.app/Contents/Resources/4.2/scripts/modules/bpy/ops.py:109
To Reproduce Steps to reproduce the behavior:
Expected behavior I expect the selected object to be exported to gltf succesfully.
Screenshots
See file attached: test-verext-color-exception.blend.zip
Version
Confirmed. This is a duplicate of #2319 Bug is on loose edges & loose vertices
Describe the bug When exporting a scene where a mesh has a Vertex Color Attribute assigned, the Exception is being thrown.
export_scene
works as expected - No issues there.To Reproduce Steps to reproduce the behavior:
Expected behavior I expect the selected object to be exported to gltf succesfully.
Screenshots
See file attached: test-verext-color-exception.blend.zip
Version