projects
/
platform
/
core
/
uifw
/
lottie-player.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d511c6c
)
lottie/render: don't try to render invisible layer.
23/188223/1
author
subhransu mohanty
<sub.mohanty@samsung.com>
Mon, 3 Sep 2018 06:49:10 +0000
(15:49 +0900)
committer
subhransu mohanty
<sub.mohanty@samsung.com>
Mon, 3 Sep 2018 06:49:10 +0000
(15:49 +0900)
Change-Id: I2544b6a04d07eaf155fbddc405952e739b14eaf1
src/lottie/lottieitem.cpp
patch
|
blob
|
history
diff --git
a/src/lottie/lottieitem.cpp
b/src/lottie/lottieitem.cpp
index
0681437
..
03336f2
100644
(file)
--- 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();