mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-14 12:04:29 +00:00
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:
parent
526dbbde1d
commit
fbf1e97c27
1 changed files with 1 additions and 1 deletions
|
@ -211,6 +211,7 @@ static void _updateGroup(LottieGroup* parent, LottieObject** child, float frameN
|
||||||
|
|
||||||
//Prepare render data
|
//Prepare render data
|
||||||
group->scene = parent->scene;
|
group->scene = parent->scene;
|
||||||
|
group->reqFragment |= ctx->reqFragment;
|
||||||
|
|
||||||
Inlist<RenderContext> contexts;
|
Inlist<RenderContext> contexts;
|
||||||
contexts.back(new RenderContext(*ctx));
|
contexts.back(new RenderContext(*ctx));
|
||||||
|
@ -246,7 +247,6 @@ static bool _fragmented(LottieObject** child, Inlist<RenderContext>& contexts, R
|
||||||
|
|
||||||
contexts.back(new RenderContext(*ctx));
|
contexts.back(new RenderContext(*ctx));
|
||||||
auto fragment = contexts.tail;
|
auto fragment = contexts.tail;
|
||||||
fragment->propagator->stroke(0.0f);
|
|
||||||
fragment->begin = child - 1;
|
fragment->begin = child - 1;
|
||||||
ctx->fragmenting = true;
|
ctx->fragmenting = true;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue