drei
drei copied to clipboard
fix: simplify useGLTF extension function logic
Why
Hello, I refactored it because there were nested if statements in the extensions function and it seemed like it was not easy to figure out what each setting was for.
What
We've refactored the setupDracoLoader
and setupMeshoptDecoder
functions to take advantage of the new DracoLoaderOption
type to simplify the logic and make the extension process simpler.
Checklist
- [x] Ready to be merged
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
drei | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Apr 5, 2024 2:19pm |
This pull request is automatically built and testable in CodeSandbox.
To see build info of the built libraries, click here or the icon next to each commit SHA.