lottie: take startFrame of composition layer into account while updating

children layers.

Change-Id: I693d18d8ba5757030f8166c263641ad900b8d835
This commit is contained in:
subhransu mohanty 2018-10-31 17:18:55 +09:00
parent 1f09869723
commit 1297e1162f

View File

@ -399,7 +399,8 @@ void LOTCompLayerItem::render(VPainter *painter, const VRle &inheritMask, const
void LOTCompLayerItem::updateContent()
{
for (const auto &layer : mLayers) {
layer->update( mLayerData->timeRemap(frameNo()), combinedMatrix(), combinedAlpha());
layer->update( mLayerData->timeRemap(frameNo()) - mLayerData->startFrame(),
combinedMatrix(), combinedAlpha());
}
}