mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-07 13:13:23 +00:00
lottie: enforce fill clipper over stroke clipper
After the stroke clipper is introduced, using clipping
requires ensuring that clipping is based on fill rather
than on stroke. Fixed now.
regression by: 324bff30d1
This commit is contained in:
parent
acc614ab2f
commit
3643121956
1 changed files with 1 additions and 0 deletions
|
@ -1254,6 +1254,7 @@ void LottieBuilder::updateMasks(LottieLayer* layer, float frameNo)
|
|||
//Cheaper. Replace the masking with a clipper
|
||||
if (layer->masks.count == 1 && compMethod == MaskMethod::Alpha) {
|
||||
layer->scene->opacity(MULTIPLY(layer->scene->opacity(), opacity));
|
||||
pShape->strokeWidth(0.0f); //enforce fill clipper over stroke clipper
|
||||
layer->scene->clip(pShape);
|
||||
fastTrack = true;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue