We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b09b2c1 commit c6e0da4Copy full SHA for c6e0da4
crates/bevy_animation/src/lib.rs
@@ -243,6 +243,7 @@ pub fn animation_player(
243
.keyframe_timestamps
244
.binary_search_by(|probe| probe.partial_cmp(&elapsed).unwrap())
245
{
246
+ Ok(n) if n >= curve.keyframe_timestamps.len() - 1 => continue, // this curve is finished
247
Ok(i) => i,
248
Err(0) => continue, // this curve isn't started yet
249
Err(n) if n > curve.keyframe_timestamps.len() - 1 => continue, // this curve is finished
0 commit comments