pmndrs / gltfjsx

🎮 Turns GLTFs into JSX components
https://gltf.pmnd.rs
MIT License
4.81k stars 317 forks source link

Uncaught Error: R3F: Primitives without 'object' are invalid! when converting models with skinnedMesh #216

Open gingman opened 1 year ago

gingman commented 1 year ago

I'm generating a component from the sample assets provided on https://github.com/KhronosGroup/glTF-Sample-Models/tree/master/2.0/BrainStem

If I use a GLTF file without skinnedMesheverything works fine. However, If I choose an object with skinnedMesh, I get an Uncaught Error: R3F: Primitives without 'object' are invalid!

I created a sample app in CodeSandbox that shows this behavior https://codesandbox.io/s/gallant-curie-xz6kzj

netgfx commented 5 months ago

I think I'm on the same boat. Loading the assets with cache bust like `?id= seems to solve this however sometimes on the first load I still get it