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 committed by Hermet Park
parent db55481e97
commit c77ef98fef
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

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