don't revert final frame on animations

This commit is contained in:
Nick Fisher
2022-08-15 00:27:05 +10:00
parent c00fb90b66
commit 020f83f2d8

View File

@@ -143,14 +143,13 @@ void SceneAsset::updateEmbeddedAnimations() {
if (status.loop) {
status.startedAt = now;
} else {
animationTimeOffset = dur.count();
finished = true;
}
} else {
animationTimeOffset = dur.count();
}
// Log("time offset %f", animationTimeOffset);
if (!finished) {
_animator->applyAnimation(status.animationIndex, animationTimeOffset);
} else {