pmndrs / gltfjsx

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

Fix parse of animations #74

Closed SaraVieira closed 3 years ago

SaraVieira commented 3 years ago

Related: https://github.com/pmndrs/gltf-react-three/issues/10

Animations are broken if in some versions of GLB if targetNames does not exist, this fixes that by checking aswell for clip.name.includes(obj.name)