drei icon indicating copy to clipboard operation
drei copied to clipboard

fix: simplify useGLTF extension function logic

Open Gaic4o opened this issue 10 months ago • 2 comments

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

Gaic4o avatar Apr 05 '24 14:04 Gaic4o

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

vercel[bot] avatar Apr 05 '24 14:04 vercel[bot]

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.

codesandbox-ci[bot] avatar Apr 05 '24 14:04 codesandbox-ci[bot]