diff --git a/es-core/src/components/LottieComponent.cpp b/es-core/src/components/LottieComponent.cpp index 0bbe385af..de5011057 100644 --- a/es-core/src/components/LottieComponent.cpp +++ b/es-core/src/components/LottieComponent.cpp @@ -6,7 +6,7 @@ // Component to play Lottie animations using the rlottie library. // -#define DEBUG_ANIMATION true +#define DEBUG_ANIMATION false #include "components/LottieComponent.h" @@ -411,7 +411,9 @@ void LottieComponent::render(const glm::mat4& parentTrans) else ++mFrameNum; - if (mFrameNum == mTotalFrames) + if (mDirection == "reverse" && mFrameNum == 0) + renderNextFrame = false; + else if (mFrameNum == mTotalFrames) renderNextFrame = false; else renderNextFrame = true;