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:
Mira Grudzinska 2025-01-03 02:24:16 +01:00 committed by Hermet Park
parent acc614ab2f
commit 3643121956

View file

@ -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 {