mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
In Path#join, add first segment of second path again at the end after joining, if it was closed.
Closes #249.
This commit is contained in:
parent
0717b33713
commit
2b236a3da8
1 changed files with 2 additions and 0 deletions
|
@ -1201,6 +1201,8 @@ var Path = PathItem.extend(/** @lends Path# */{
|
|||
this._add(segments.slice());
|
||||
}
|
||||
}
|
||||
if (path.closed)
|
||||
this._add([segments[0]]);
|
||||
path.remove();
|
||||
// Close if they touch in both places
|
||||
var first1 = this.getFirstSegment();
|
||||
|
|
Loading…
Reference in a new issue