mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Minor code optimization.
This commit is contained in:
parent
17cca2984b
commit
f4f4b3472f
1 changed files with 2 additions and 2 deletions
|
@ -694,11 +694,11 @@ PathItem.inject(new function() {
|
|||
// to which we may switch might be, so check that.
|
||||
|| nextInter && isValid(nextInter._segment)))
|
||||
))
|
||||
return inter;
|
||||
break;
|
||||
// If it's no match, continue with the next linked intersection.
|
||||
inter = inter._next;
|
||||
}
|
||||
return start;
|
||||
return inter || start;
|
||||
}
|
||||
|
||||
// Sort segments to give non-ambiguous segments the preference as
|
||||
|
|
Loading…
Reference in a new issue