mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-05 14:02:48 +00:00
lottie: take startFrame of composition layer into account while updating
children layers. Change-Id: I693d18d8ba5757030f8166c263641ad900b8d835
This commit is contained in:
parent
1f09869723
commit
1297e1162f
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user