lottie/builder: enable layer blending

Issue: https://github.com/thorvg/thorvg/issues/1737
This commit is contained in:
Hermet Park 2023-10-26 23:11:15 +09:00
parent 4ad0b79eec
commit 9b9889b228
3 changed files with 6 additions and 1 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -967,6 +967,11 @@ static void _updateLayer(LottieLayer* root, LottieLayer* layer, float frameNo, b
//the given matte source was composited by the target earlier. //the given matte source was composited by the target earlier.
if (!layer->matteSrc) root->scene->push(cast<Scene>(layer->scene)); if (!layer->matteSrc) root->scene->push(cast<Scene>(layer->scene));
//Apply a layer blending mode
if (layer->blendMethod != BlendMethod::Normal) {
layer->scene->blend(layer->blendMethod);
}
//cache this static layer scene //cache this static layer scene
if (cache) { if (cache) {
//TODO: remove duplicate, share the scene. //TODO: remove duplicate, share the scene.