mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-19 14:10:14 -05:00
Revert change in recursion threshold as the new code reaches the desired precision earlier.
This commit is contained in:
parent
cca6606f72
commit
d33d65fcc2
1 changed files with 1 additions and 3 deletions
|
@ -1089,9 +1089,7 @@ new function() { // Scope for methods that require numerical integration
|
|||
dp2 = getSignedDistance(q0x, q0y, q3x, q3y, v1[4], v1[5]),
|
||||
dp3 = getSignedDistance(q0x, q0y, q3x, q3y, v1[6], v1[7]),
|
||||
tMinNew, tMaxNew, tDiff;
|
||||
// NOTE: the recursion threshold of 4 is needed to prevent issue #571
|
||||
// from occurring: https://github.com/paperjs/paper.js/issues/571
|
||||
if (q0x === q3x && uMax - uMin <= epsilon && recursion > 4) {
|
||||
if (q0x === q3x && uMax - uMin <= epsilon && recursion > 3) {
|
||||
// The fatline of Q has converged to a point, the clipping is not
|
||||
// reliable. Return the value we have even though we will miss the
|
||||
// precision.
|
||||
|
|
Loading…
Reference in a new issue