Fix incorrect interpolation for animation cubic bezier curves when falling back to bisection method
See #8401
This commit is contained in:
parent
4d882eb633
commit
228d9cfc1c
1 changed files with 1 additions and 0 deletions
|
|
@ -135,6 +135,7 @@ solve_curve_x(const BezierParameters *p, double x, double epsilon) {
|
|||
}
|
||||
if (fabs(x2) < epsilon) return t2;
|
||||
|
||||
t0 = 0.0, t1 = 0.0, t2 = x, x2 = 0.0;
|
||||
// Fall back to the bisection method for reliability.
|
||||
unsigned iteration = 0;
|
||||
while (t0 < t1 && iteration++ < max_bisection_iterations) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue