Skip to content
Snippets Groups Projects
Verified Commit db0f9c79 authored by Louis's avatar Louis :fire:
Browse files

Fix action animation overflow

parent 29d77b09
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [0.2.1]
### Fixed
- Action animation frames overflow
## [0.2.0]
### Added
......
[package]
name = "micro_banimate"
version = "0.2.0"
version = "0.2.1"
edition = "2021"
license = "Apache-2.0"
description = "Easily manage complex Bevy 2D sprite animations"
......
......@@ -285,6 +285,7 @@ impl<'w, 's> AnimationQuery<'w, 's> {
entity,
user_data: status.user_data,
});
status.frame_step = current.frames.len() - 1;
}
if let Ok(mut sprite) = self.tile_sprite.get_mut(entity) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment