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:
Hermet Park 2023-11-22 00:27:06 +09:00 committed by Hermet Park
parent d25d7f348f
commit 0c1322fa07

View file

@ -622,7 +622,7 @@ static void _updatePolystar(LottieGroup* parent, LottieObject** child, float fra
mathIdentity(&matrix);
auto position = star->position(frameNo);
mathTranslate(&matrix, position.x, position.y);
mathRotate(&matrix, star->rotation(frameNo) * 2.0f);
mathRotate(&matrix, star->rotation(frameNo));
auto identity = mathIdentity((const Matrix*)&matrix);