mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 23:55:38 +00:00
Disabled debug mode in LottieComponent and fixed a small bug.
This commit is contained in:
parent
93adea943b
commit
6ff91e89ca
|
@ -6,7 +6,7 @@
|
||||||
// Component to play Lottie animations using the rlottie library.
|
// Component to play Lottie animations using the rlottie library.
|
||||||
//
|
//
|
||||||
|
|
||||||
#define DEBUG_ANIMATION true
|
#define DEBUG_ANIMATION false
|
||||||
|
|
||||||
#include "components/LottieComponent.h"
|
#include "components/LottieComponent.h"
|
||||||
|
|
||||||
|
@ -411,7 +411,9 @@ void LottieComponent::render(const glm::mat4& parentTrans)
|
||||||
else
|
else
|
||||||
++mFrameNum;
|
++mFrameNum;
|
||||||
|
|
||||||
if (mFrameNum == mTotalFrames)
|
if (mDirection == "reverse" && mFrameNum == 0)
|
||||||
|
renderNextFrame = false;
|
||||||
|
else if (mFrameNum == mTotalFrames)
|
||||||
renderNextFrame = false;
|
renderNextFrame = false;
|
||||||
else
|
else
|
||||||
renderNextFrame = true;
|
renderNextFrame = true;
|
||||||
|
|
Loading…
Reference in a new issue