mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-19 14:10:14 -05:00
Resolve question about wether last segment should be included in join or not.
This commit is contained in:
parent
3e3e519bfe
commit
20cf32d599
1 changed files with 1 additions and 2 deletions
|
@ -326,8 +326,7 @@ var Path = this.Path = PathItem.extend({
|
|||
if (first1._point.equals(last2._point)) {
|
||||
first1.setHandleIn(last2._handleIn);
|
||||
// Prepend all segments from path except last one
|
||||
// TODO: Test if -1 (== all) or -2 (as described by comment)
|
||||
this._add(segments.slice(0, segments.length - 2), 0);
|
||||
this._add(segments.slice(0, segments.length - 1), 0);
|
||||
} else {
|
||||
this._add(segments.slice(0));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue