don't revert final frame on animations

This commit is contained in:
Nick Fisher
2022-08-15 00:27:05 +10:00
parent 2aafbee92e
commit ed2db379cb

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 {