mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-10 06:34:01 +00:00
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:
parent
c92cf4e139
commit
76c1b20dee
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue