Closed GWillmann closed 5 years ago
Many thanks for pointing this out GWilliam. I believe this error stems from the GLTFLoader module. Have a nice day ahead.
Regards,
I believe this is coming from the @calvinscofield because the GLTFLoader is imported from there. Many thanks for this find. I need to fix it soon.
Regards,
This bug has been resolved with three-gltf-loader@l.105.0. Feel free to reopen this issue
Describe the bug When clicking on some 3D objects to add them to the scene, a error occurs and the object isn't added to the scene.
To Reproduce Create a new layout
TypeError: "cached is undefined"
Expected behavior Object is added to the scene
Screenshots
Desktop (please complete the following information):
Fix Simply adding
typeof cached !== 'undefined
fixes the problem and makes it possible to add the object to the scene. However being relatively new to this project, I don't know in which library it uses I should submit a PR. There are many occurrences of the faulty line:Thanks for your work!