mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-27 02:11:58 +00:00
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:
parent
5838334d5f
commit
83950dafe7
1 changed files with 0 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue