From 020f83f2d8ea620a146e61818cb2d8b80af43738 Mon Sep 17 00:00:00 2001 From: Nick Fisher Date: Mon, 15 Aug 2022 00:27:05 +1000 Subject: [PATCH] don't revert final frame on animations --- ios/src/SceneAsset.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ios/src/SceneAsset.cpp b/ios/src/SceneAsset.cpp index 41413fca..41b18813 100644 --- a/ios/src/SceneAsset.cpp +++ b/ios/src/SceneAsset.cpp @@ -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 {