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
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;
}