mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-13 11:36:25 +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
adf92beef5
commit
68ecd61ef7
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
|
||||
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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue