don't revert final frame on animations
This commit is contained in:
1 parent
2aafbee92e
commit
ed2db379cb
1 file changed
+1
-2
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user