lottie: remove an unwilling task

ThorVG need to handle essential exceptions internally within the API,
rather than requiring users to manage them.
This commit is contained in:
Hermet Park 2025-06-25 12:01:00 +09:00
parent 5838334d5f
commit 83950dafe7

View file

@ -519,8 +519,6 @@ Fill* LottieGradient::fill(float frameNo, uint8_t opacity, Tween& tween, LottieE
if (tvg::zero(progress)) {
static_cast<RadialGradient*>(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;