mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-29 01:12:39 -05:00
Minor cleanup for previous commit.
This commit is contained in:
parent
fdd42076f9
commit
374107c439
1 changed files with 1 additions and 2 deletions
|
@ -2055,8 +2055,7 @@ new function() { // Scope for bezier intersection using fat-line clipping
|
|||
// point overlaps with the second curve's start- / end-point,
|
||||
// but only if haven't found a line-line intersection already:
|
||||
// #805#issuecomment-148503018
|
||||
|
||||
if (!(straight && locations.length > before)) {
|
||||
if (!straight || locations.length === before) {
|
||||
for (var i = 0; i < 4; i++) {
|
||||
var t1 = i >> 1, // 0, 0, 1, 1
|
||||
t2 = i & 1, // 0, 1, 0, 1
|
||||
|
|
Loading…
Reference in a new issue