File 0002-fix-keyframe-end-time.patch of Package rlottie
From c5c2063868237475ece2ecbea2009fb71ae4630b Mon Sep 17 00:00:00 2001
From: Matt Beghin <matt.beghin@gmail.com>
Date: Mon, 21 Aug 2023 11:37:18 +0200
Subject: [PATCH] Fixed animation last key frame end time
Init keyframe end time with its start time, will be updated when parsing next key frame if any (solves issue interpolating to last keyframe) - Solves issue 548 https://github.com/Samsung/rlottie/issues/548
---
src/lottie/lottieparser.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/lottie/lottieparser.cpp b/src/lottie/lottieparser.cpp
index b33effae..b1997e76 100644
--- a/src/lottie/lottieparser.cpp
+++ b/src/lottie/lottieparser.cpp
@@ -2032,6 +2032,7 @@ void LottieParserImpl::parseKeyFrame(model::KeyFrames<T, Tag> &obj)
outTangent = parseInperpolatorPoint();
} else if (0 == strcmp(key, "t")) {
keyframe.start_ = GetDouble();
+ keyframe.end_ = keyframe.start_;
} else if (0 == strcmp(key, "s")) {
parsed.value = true;
getValue(keyframe.value_.start_);