mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-07 13:22:07 -05:00
Do not keep iterating if the curve was reduced to a point.
This commit is contained in:
parent
d33d65fcc2
commit
3564dafa93
1 changed files with 2 additions and 2 deletions
|
@ -1152,7 +1152,7 @@ new function() { // Scope for methods that require numerical integration
|
||||||
curve1, t1, Curve.evaluate(v1, t1, 0),
|
curve1, t1, Curve.evaluate(v1, t1, 0),
|
||||||
curve2, t2, Curve.evaluate(v2, t2, 0));
|
curve2, t2, Curve.evaluate(v2, t2, 0));
|
||||||
}
|
}
|
||||||
} else { // Iterate
|
} else if (tDiff > 0) { // Iterate
|
||||||
addCurveIntersections(v2, v1, curve2, curve1, locations, include,
|
addCurveIntersections(v2, v1, curve2, curve1, locations, include,
|
||||||
uMin, uMax, tMinNew, tMaxNew, tDiff, !reverse, ++recursion);
|
uMin, uMax, tMinNew, tMaxNew, tDiff, !reverse, ++recursion);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue