Fix animation playback issue 94/300394/1
authorHubert Stachowiak <h.stachowiak@samsung.com>
Mon, 23 Oct 2023 15:33:45 +0000 (17:33 +0200)
committerHubert Stachowiak <h.stachowiak@samsung.com>
Mon, 23 Oct 2023 15:52:48 +0000 (17:52 +0200)
Change-Id: Ice9fa3da9bae572fff96a80045ceaa7d09290832

src/rive_tizen.cpp

index 7450a9a13735f2fe0a0c9fed1e78b5d9f329e1e0..0a4e54502b22e8324dcac7d19814775d801bf0ac 100644 (file)
@@ -91,7 +91,6 @@ void RiveTizen::animationAdvanceApply(rive::LinearAnimationInstance *animation,
       return;
    }
    animation->advanceAndApply(elapsed);
-   animation->apply();
 }
 
 void RiveTizen::animationApply(rive::LinearAnimationInstance *animation, double elapsed)
@@ -102,6 +101,7 @@ void RiveTizen::animationApply(rive::LinearAnimationInstance *animation, double
       return;
    }
    animation->time(elapsed);
+   animation->apply();
 }
 
 bool RiveTizen::loadRiveResource(uint8_t *bytes, size_t size)