mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -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) {
|
||||
var inter = segment._intersection,
|
||||
start = inter;
|
||||
if (!inter || !inter._next)
|
||||
return inter;
|
||||
while (inter && inter !== start) {
|
||||
while (inter) {
|
||||
var other = inter._segment,
|
||||
next = other.getNext(),
|
||||
nextInter = next && next._intersection;
|
||||
|
|
Loading…
Reference in a new issue