Tresjs / cientos

Collection of useful helpers and fully functional, ready-made abstractions for TresJS
https://cientos.tresjs.org/
MIT License
281 stars 40 forks source link

useGLTF: race conditions problem after add of `autodispose` #432

Open emavitta opened 4 months ago

emavitta commented 4 months ago

Describe the bug

I have multiple models paths in an array, and when i try to load them in a cycle, it only load one, it seems a race condition with dracoLoadernot being an async function.

Wrapping the dracoLoader in an async function seems to solve the problem, i'll provide a pr as soon as possibile.

Reproduction

https://stackblitz.com/edit/nuxt-starter-zbayq9?file=app.vue

Steps to reproduce

No response

System Info

No response

Used Package Manager

npm

Code of Conduct

stackblitz[bot] commented 4 months ago

Fix this issue in StackBlitz Codeflow Start a new pull request in StackBlitz Codeflow.