lottie: fix trim path regression

To avoid editing the trim path values provided
by the user, the logic for their interpretation
was moved from the API to the renderer (7c87d8e).
This caused an issue in the lottie animations when
the trim path is applied more than once. Now fixed.

@issue: https://github.com/thorvg/thorvg/issues/2670
This commit is contained in:
Mira Grudzinska 2024-08-28 15:49:55 +02:00 committed by Hermet Park
parent cde6a24b1b
commit 362b51028d

View file

@ -157,6 +157,7 @@ void LottieTrimpath::segment(float frameNo, float& start, float& end, LottieExpr
return;
}
if (start > end) std::swap(start, end);
start += o;
end += o;
}