From: Michal Szczecinski Date: Fri, 13 Aug 2021 09:06:49 +0000 (+0200) Subject: vg common json: Don't ignore layer opacity. X-Git-Tag: accepted/tizen/unified/20210822.213311~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9371cea42170845daf91e2390fefe9d23db11f6c;p=platform%2Fupstream%2Fefl.git vg common json: Don't ignore layer opacity. Some lottie files use translucent layers as a mask. We can't ignore them. This commit pass layer opacity to tree to fix rendering issues in some lottie files. Change-Id: I05eb2eb43755c2ca3aa2194daeded76613b4d7d4 --- diff --git a/src/static_libs/vg_common/vg_common_json.c b/src/static_libs/vg_common/vg_common_json.c index a43c4a2..7664494 100644 --- a/src/static_libs/vg_common/vg_common_json.c +++ b/src/static_libs/vg_common/vg_common_json.c @@ -305,7 +305,6 @@ static void _update_vg_tree(Tvg_Paint *root, const LOTLayerNode *layer, int depth EINA_UNUSED) { if (!layer->mVisible) return; - if (layer->mAlpha == 0) return; Tvg_Paint *ptree = NULL; @@ -314,6 +313,8 @@ _update_vg_tree(Tvg_Paint *root, const LOTLayerNode *layer, int depth EINA_UNUSE Tvg_Paint *mtarget = NULL; LOTLayerNode *mlayer = NULL; + tvg_paint_set_opacity(root, layer->mAlpha); + //Is this layer a container layer? for (unsigned int i = 0; i < layer->mLayerList.size; i++) {