bevy/crates/bevy_animation
Nicola Papale c730d8c4cc
Fix animations resetting after repeat count (#10540)
# Objective

After #9002, it seems that "single shot" animations were broken. When
completing, they would reset to their initial value. Which is generally
not what you want.

- Fixes #10480

## Solution

Avoid `%`-ing the animation after the number of completions exceeds the
specified one. Instead, we early-return. This is also true when the
player is playing in reverse.

---

## Changelog

- Avoid resetting animations after `Repeat::Never` animation completion.
2023-11-14 01:59:36 +00:00
..
src Fix animations resetting after repeat count (#10540) 2023-11-14 01:59:36 +00:00
Cargo.toml Release 0.12 (#10362) 2023-11-04 17:24:23 +00:00