mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-03-14 00:39:57 -04:00
parent
438de7013a
commit
2a3f0646f0
1 changed files with 7 additions and 5 deletions
|
@ -610,11 +610,13 @@ Path.inject(/** @lends Path# */{
|
|||
p2x = p2._x, p2y = p2._y;
|
||||
handleCurve([p1x, p1y, p1x, p1y, p2x, p2y, p2x, p2y]);
|
||||
}
|
||||
// Link first and last curves
|
||||
var first = monoCurves[0],
|
||||
last = monoCurves[monoCurves.length - 1];
|
||||
first.previous = last;
|
||||
last.next = first;
|
||||
if (monoCurves.length > 0) {
|
||||
// Link first and last curves
|
||||
var first = monoCurves[0],
|
||||
last = monoCurves[monoCurves.length - 1];
|
||||
first.previous = last;
|
||||
last.next = first;
|
||||
}
|
||||
}
|
||||
return monoCurves;
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue