mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -05:00
Fix issue in recent Path.Line constructor optimization.
Line paths should not be closed.
This commit is contained in:
parent
4129231504
commit
7dd3bfa2ec
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ Path.inject({ statics: new function() {
|
|||
path = new Path(props && props.insert === false && Item.NO_INSERT);
|
||||
path._add(segments);
|
||||
// No need to use setter for _closed since _add() called _changed().
|
||||
path._closed = true;
|
||||
path._closed = closed;
|
||||
// Set named arguments at the end, since some depend on geometry to be
|
||||
// defined (e.g. #clockwise)
|
||||
return path.set(props);
|
||||
|
|
Loading…
Reference in a new issue