mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-07 21:23:32 +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
|
//Cheaper. Replace the masking with a clipper
|
||||||
if (layer->masks.count == 1 && compMethod == MaskMethod::Alpha) {
|
if (layer->masks.count == 1 && compMethod == MaskMethod::Alpha) {
|
||||||
layer->scene->opacity(MULTIPLY(layer->scene->opacity(), opacity));
|
layer->scene->opacity(MULTIPLY(layer->scene->opacity(), opacity));
|
||||||
|
pShape->strokeWidth(0.0f); //enforce fill clipper over stroke clipper
|
||||||
layer->scene->clip(pShape);
|
layer->scene->clip(pShape);
|
||||||
fastTrack = true;
|
fastTrack = true;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue