lottie: matrix multiplication fix

In case the shapes could be merged, matrix
multiplication was not stored in any variable,
resulting in one of the transformations not
being applied.
This commit is contained in:
Mira Grudzinska 2024-05-20 14:13:24 +02:00 committed by Hermet Park
parent c784ed7362
commit 9a455632a2

View file

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