Closed ieskudero closed 3 months ago
The glb provided is not a valid glTF/glb file. None is not a valid value for float. Even this can be workaround, we will probably not fix it, as we don't want that some not valid files become the de facto norm. You should report a bug to the ThreeJS GLTF exporter team.
You can check the validity of a file here: https://github.khronos.org/glTF-Validator/
Describe the bug With a model exported with ThreeJS GLTF exporter, there is a case apparently where a float comes as None, and the blender addon crashes on importing the file.
To Reproduce Steps to reproduce the behavior:
Expected behavior The importer should maybe convert values as False ->0, True ->1 or None->0 before passing the assert method
.blend file/ .gltf (mandatory) 2024617_301.zip
Version
Additional context I don't know if the bug comes from the ThreeJS exporter or in the Blender addon, but it can be fixed parsing values like False, True, None ... to numeric values instead of only checking for type. In this case, I changed the file
glt2_io.py
in thescripts\addons\io_scene_gltf2\io\com\
folder, from this:to this: