mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-08 05:42:07 -05:00
Revert "Correct boolean condition in getWinding."
This reverts commit fcc2e93daf
.
This commit is contained in:
parent
fcc2e93daf
commit
e5e2a8d7d4
1 changed files with 3 additions and 3 deletions
|
@ -275,9 +275,9 @@ PathItem.inject(new function() {
|
||||||
// compare the endpoints of the curve to determine if the
|
// compare the endpoints of the curve to determine if the
|
||||||
// ray from query point along +-x direction will intersect
|
// ray from query point along +-x direction will intersect
|
||||||
// the monotone curve. Results in quite significant speedup.
|
// the monotone curve. Results in quite significant speedup.
|
||||||
if ((winding === -1 || (winding === 1
|
if (winding && (winding === 1
|
||||||
&& ((y >= values[1] && y <= values[7])
|
&& y >= values[1] && y <= values[7]
|
||||||
|| (y >= values[7] && y <= values[1]))))
|
|| y >= values[7] && y <= values[1])
|
||||||
&& Curve.solveCubic(values, 1, y, roots, 0,
|
&& Curve.solveCubic(values, 1, y, roots, 0,
|
||||||
// If the next curve is horizontal, we have to include
|
// If the next curve is horizontal, we have to include
|
||||||
// the end of this curve to make sure we won't miss an
|
// the end of this curve to make sure we won't miss an
|
||||||
|
|
Loading…
Reference in a new issue