From 1297e1162fcf2e8266c67238615a5aef85fea45c Mon Sep 17 00:00:00 2001 From: subhransu mohanty Date: Wed, 31 Oct 2018 17:18:55 +0900 Subject: [PATCH] lottie: take startFrame of composition layer into account while updating children layers. Change-Id: I693d18d8ba5757030f8166c263641ad900b8d835 --- src/lottie/lottieitem.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lottie/lottieitem.cpp b/src/lottie/lottieitem.cpp index 36a69d9..0df4247 100644 --- a/src/lottie/lottieitem.cpp +++ b/src/lottie/lottieitem.cpp @@ -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()); } } -- 2.34.1