mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 13:43:43 +00:00
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:
parent
c784ed7362
commit
9a455632a2
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue