Fix for first animation frame always showing the first sprite sheet texture region rather than the first animation's texture region. (#972)

Co-authored-by: Christopher Whitley <103014489+AristurtleDev@users.noreply.github.com>
This commit is contained in:
David Fidge
2025-03-02 13:31:36 +10:30
committed by GitHub
parent b8d9203ef6
commit c4bfb3c37f
@@ -51,6 +51,7 @@ public class AnimatedSprite : Sprite
{
_animation = spriteSheet.GetAnimation(initialAnimation);
Controller = new AnimationController(_animation);
TextureRegion = _spriteSheet.TextureAtlas[Controller.CurrentFrame];
}
/// <summary>