From b9b13e5923e1d3eb12a21d4677e3ac21f0154104 Mon Sep 17 00:00:00 2001 From: subhransu mohanty Date: Mon, 3 Sep 2018 15:49:10 +0900 Subject: [PATCH] lottie/render: don't try to render invisible layer. Change-Id: I2544b6a04d07eaf155fbddc405952e739b14eaf1 --- src/lottie/lottieitem.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lottie/lottieitem.cpp b/src/lottie/lottieitem.cpp index 0681437..03336f2 100644 --- a/src/lottie/lottieitem.cpp +++ b/src/lottie/lottieitem.cpp @@ -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(); -- 2.34.1