From b5f3c303d3334a202bcc7c8c26360887571ebf60 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 5a949622..e4e30093 100644 --- a/src/loaders/lottie/tvgLottieBuilder.cpp +++ b/src/loaders/lottie/tvgLottieBuilder.cpp @@ -624,7 +624,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);