pmndrs / drei

🥉 useful helpers for react-three-fiber
https://drei.pmnd.rs/
MIT License
7.83k stars 642 forks source link

Fix: correctly identify empty frames for useSpriteLoader #1989

Closed netgfx closed 3 weeks ago

netgfx commented 3 weeks ago

Why

Some spritesheets might contain empty frames, this fix correctly discards those from the end results so the animation is accurate

What

Added the functionality for empty frames to be excluded from the useSpriteLoader result (for spritesheets without a JSON)

Checklist

vercel[bot] commented 3 weeks ago

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 Jun 10, 2024 8:01pm
codesandbox-ci[bot] commented 3 weeks ago

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.