mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Boolean: Make sure we're actually comparing multiple intersections.
This commit is contained in:
parent
4c12f1505c
commit
17cca2984b
1 changed files with 1 additions and 3 deletions
|
@ -679,9 +679,7 @@ PathItem.inject(new function() {
|
||||||
function findBestIntersection(segment) {
|
function findBestIntersection(segment) {
|
||||||
var inter = segment._intersection,
|
var inter = segment._intersection,
|
||||||
start = inter;
|
start = inter;
|
||||||
if (!inter || !inter._next)
|
while (inter) {
|
||||||
return inter;
|
|
||||||
while (inter && inter !== start) {
|
|
||||||
var other = inter._segment,
|
var other = inter._segment,
|
||||||
next = other.getNext(),
|
next = other.getNext(),
|
||||||
nextInter = next && next._intersection;
|
nextInter = next && next._intersection;
|
||||||
|
|
Loading…
Reference in a new issue