merwaaan / bevy_spritesheet_animation

A Bevy plugin for animating sprites that are backed by spritesheets
MIT License
56 stars 5 forks source link

Sprite3d panics #21

Closed marijanp closed 1 week ago

marijanp commented 2 weeks ago

What could be the reason for the following line panicing? I have two spawn systems each storing several animations in the library. My game panics just after starting. https://github.com/merwaaan/bevy_spritesheet_animation/blob/e61a77e105b8f121b59a1039999f27e7bf010fce/src/systems/sprite3d.rs#L280-L283

merwaaan commented 1 week ago

Hi @marijanp

Without more info, I cannot say much. There might be an issue with the entity creation.

Do you instantiate your entities like in the README, with an explicit atlas?

If you provide a minimal repro, I can try to take a look.

marijanp commented 1 week ago

Ok the bug was a wrong animation by-name lookup.