From 83950dafe7945b0381f23d53ed28f34f68383f9c Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Wed, 25 Jun 2025 12:01:00 +0900 Subject: [PATCH] lottie: remove an unwilling task ThorVG need to handle essential exceptions internally within the API, rather than requiring users to manage them. --- src/loaders/lottie/tvgLottieModel.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/loaders/lottie/tvgLottieModel.cpp b/src/loaders/lottie/tvgLottieModel.cpp index c8850d85..ea380631 100644 --- a/src/loaders/lottie/tvgLottieModel.cpp +++ b/src/loaders/lottie/tvgLottieModel.cpp @@ -519,8 +519,6 @@ Fill* LottieGradient::fill(float frameNo, uint8_t opacity, Tween& tween, LottieE if (tvg::zero(progress)) { static_cast(fill)->radial(s.x, s.y, r, s.x, s.y, 0.0f); } else { - //TODO: apply if SVG2.0 std is applied to the radial gradient in the engines - //progress = tvg::clamp(progress, -0.99f, 0.99f); auto startAngle = rad2deg(tvg::atan2(e.y - s.y, e.x - s.x)); auto angle = deg2rad((startAngle + this->angle(frameNo, tween, exps))); auto fx = s.x + cos(angle) * progress * r;