lottieitem : fix wrong matrix computation order.

It occured scaled position, now it's fixed.

Change-Id: Id179c32139fb0722a6f4faaaea7044944c2e4c92
This commit is contained in:
Hermet Park 2018-10-17 19:45:02 +09:00
parent c0f50fb89a
commit a7ec780181

View File

@ -80,7 +80,7 @@ bool LOTCompItem::update(int frameNo)
float ty = (viewPort.height() - viewBox.height() * scale) * 0.5; float ty = (viewPort.height() - viewBox.height() * scale) * 0.5;
VMatrix m; VMatrix m;
m.scale(scale, scale).translate(tx, ty); m.translate(tx, ty).scale(scale, scale);
mRootLayer->update(frameNo, m, 1.0); mRootLayer->update(frameNo, m, 1.0);
mCurFrameNo = frameNo; mCurFrameNo = frameNo;