mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-13 11:36:25 +00:00
lottie/builder: corrected polystar rotation.
There was likely a mistake in the rotation value set; there was no reason to multiply it by 2. Issue: https://github.com/thorvg/thorvg/issues/1773
This commit is contained in:
parent
d25d7f348f
commit
0c1322fa07
1 changed files with 1 additions and 1 deletions
|
@ -622,7 +622,7 @@ static void _updatePolystar(LottieGroup* parent, LottieObject** child, float fra
|
||||||
mathIdentity(&matrix);
|
mathIdentity(&matrix);
|
||||||
auto position = star->position(frameNo);
|
auto position = star->position(frameNo);
|
||||||
mathTranslate(&matrix, position.x, position.y);
|
mathTranslate(&matrix, position.x, position.y);
|
||||||
mathRotate(&matrix, star->rotation(frameNo) * 2.0f);
|
mathRotate(&matrix, star->rotation(frameNo));
|
||||||
|
|
||||||
auto identity = mathIdentity((const Matrix*)&matrix);
|
auto identity = mathIdentity((const Matrix*)&matrix);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue