lottie/render: don't try to render invisible layer. 23/188223/1
authorsubhransu mohanty <sub.mohanty@samsung.com>
Mon, 3 Sep 2018 06:49:10 +0000 (15:49 +0900)
committersubhransu mohanty <sub.mohanty@samsung.com>
Mon, 3 Sep 2018 06:49:10 +0000 (15:49 +0900)
Change-Id: I2544b6a04d07eaf155fbddc405952e739b14eaf1

src/lottie/lottieitem.cpp

index 0681437..03336f2 100644 (file)
@@ -159,6 +159,8 @@ VRle LOTMaskItem::rle()
 
 void LOTLayerItem::render(VPainter *painter, const VRle &inheritMask, const VRle &inheritMatte, LOTLayerItem *matteSource)
 {
+    if (!visible()) return;
+
     VRle matteRle;
     if (matteSource) {
         mDrawableList.clear();
@@ -348,6 +350,8 @@ void LOTCompLayerItem::updateStaticProperty()
 
 void LOTCompLayerItem::render(VPainter *painter, const VRle &inheritMask, const VRle &inheritMatte, LOTLayerItem *matteSource)
 {
+    if (!visible()) return;
+
     VRle matteRle;
     if (matteSource) {
         mDrawableList.clear();