lottie: fixed an issue with missing stroke drawing

Resolved a problem where the context was missing in scenarios
involving an overlapped stroke drawing.

issue: https://github.com/thorvg/thorvg/issues/1933
This commit is contained in:
Hermet Park 2024-01-24 11:40:16 +09:00
parent adf92beef5
commit 68ecd61ef7

View file

@ -211,6 +211,7 @@ static void _updateGroup(LottieGroup* parent, LottieObject** child, float frameN
//Prepare render data
group->scene = parent->scene;
group->reqFragment |= ctx->reqFragment;
Inlist<RenderContext> contexts;
contexts.back(new RenderContext(*ctx));
@ -246,7 +247,6 @@ static bool _fragmented(LottieObject** child, Inlist<RenderContext>& contexts, R
contexts.back(new RenderContext(*ctx));
auto fragment = contexts.tail;
fragment->propagator->stroke(0.0f);
fragment->begin = child - 1;
ctx->fragmenting = true;