From e69d63688b086588390aac72cce1cc9f2b951530 Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Fri, 29 Mar 2024 12:36:02 +0900 Subject: [PATCH] lottie: Removed redundant code. The settings were incorrect; 'direction' and 'fillRule' do not have a relationship. --- src/loaders/lottie/tvgLottieBuilder.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/loaders/lottie/tvgLottieBuilder.cpp b/src/loaders/lottie/tvgLottieBuilder.cpp index 31b4e4e2..e1549415 100644 --- a/src/loaders/lottie/tvgLottieBuilder.cpp +++ b/src/loaders/lottie/tvgLottieBuilder.cpp @@ -463,7 +463,6 @@ static void _updateRect(LottieGroup* parent, LottieObject** child, float frameNo } else { auto merging = _draw(parent, ctx); _appendRect(merging, position.x - size.x * 0.5f, position.y - size.y * 0.5f, size.x, size.y, roundness, ctx->transform); - if (rect->direction == 2) merging->fill(FillRule::EvenOdd); } } @@ -510,7 +509,6 @@ static void _updateEllipse(LottieGroup* parent, LottieObject** child, float fram } else { auto merging = _draw(parent, ctx); _appendCircle(merging, position.x, position.y, size.x * 0.5f, size.y * 0.5f, ctx->transform); - if (ellipse->direction == 2) merging->fill(FillRule::EvenOdd); } } @@ -532,7 +530,6 @@ static void _updatePath(LottieGroup* parent, LottieObject** child, float frameNo TVGERR("LOTTIE", "FIXME: Path roundesss should be applied properly!"); P(merging)->rs.stroke->join = StrokeJoin::Round; } - if (path->direction == 2) merging->fill(FillRule::EvenOdd); } } @@ -813,7 +810,6 @@ static void _updatePolystar(LottieGroup* parent, LottieObject** child, float fra if (star->type == LottiePolyStar::Star) _updateStar(parent, star, identity ? nullptr : &matrix, frameNo, merging); else _updatePolygon(parent, star, identity ? nullptr : &matrix, frameNo, merging); P(merging)->update(RenderUpdateFlag::Path); - if (star->direction == 2) merging->fill(FillRule::EvenOdd); } }