lottie: take startFrame of composition layer into account while updating 77/192177/1
authorsubhransu mohanty <sub.mohanty@samsung.com>
Wed, 31 Oct 2018 08:18:55 +0000 (17:18 +0900)
committersubhransu mohanty <sub.mohanty@samsung.com>
Wed, 31 Oct 2018 08:18:55 +0000 (17:18 +0900)
        children layers.

Change-Id: I693d18d8ba5757030f8166c263641ad900b8d835

src/lottie/lottieitem.cpp

index 36a69d9..0df4247 100644 (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());
     }
 }