From: subhransu mohanty Date: Wed, 31 Oct 2018 08:18:55 +0000 (+0900) Subject: lottie: take startFrame of composition layer into account while updating X-Git-Tag: submit/tizen/20181129.071502~41 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1297e1162fcf2e8266c67238615a5aef85fea45c;p=platform%2Fcore%2Fuifw%2Flottie-player.git lottie: take startFrame of composition layer into account while updating children layers. Change-Id: I693d18d8ba5757030f8166c263641ad900b8d835 --- 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()); } }