From: Michal Maciola Date: Fri, 21 Jan 2022 10:09:36 +0000 (+0100) Subject: evas vg json: hide parent layer if invisible mask applied X-Git-Tag: accepted/tizen/unified/20220316.182839^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7b27b857b839b90bd56daab5730e0bbe441f13f1;p=platform%2Fupstream%2Fefl.git evas vg json: hide parent layer if invisible mask applied If a layer has an invisible mask applied, parent layer will be set invisible too. It will help displaying some json files correctly. Change-Id: Ibaacb3f9617eace384eba0e5fa38032ed9ba9ebf --- diff --git a/src/static_libs/vg_common/vg_common_json.c b/src/static_libs/vg_common/vg_common_json.c index fc20741..3ffa03b 100644 --- a/src/static_libs/vg_common/vg_common_json.c +++ b/src/static_libs/vg_common/vg_common_json.c @@ -311,12 +311,17 @@ _update_vg_tree(Tvg_Paint *root, const LOTLayerNode *layer, int depth EINA_UNUSE if (!clayer->mVisible) { + // TIZEN_ONLY(20220121): Hide parent layer if invisible mask applied + if (ptree && matte_mode != TVG_COMPOSITE_METHOD_NONE) + tvg_paint_set_opacity(ptree, 0); + + matte_mode = TVG_COMPOSITE_METHOD_NONE; + //If layer has some masking layers, skip them while (clayer->mMatte != MatteNone) { clayer = layer->mLayerList.ptr[++i]; } - matte_mode = TVG_COMPOSITE_METHOD_NONE; continue; }