From 0c1322fa077cb842652a52ad5ba0a269ade117a2 Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Wed, 22 Nov 2023 00:27:06 +0900 Subject: [PATCH] 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 --- src/loaders/lottie/tvgLottieBuilder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/loaders/lottie/tvgLottieBuilder.cpp b/src/loaders/lottie/tvgLottieBuilder.cpp index 911895da..f09f107b 100644 --- a/src/loaders/lottie/tvgLottieBuilder.cpp +++ b/src/loaders/lottie/tvgLottieBuilder.cpp @@ -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);