mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-22 07:19:57 -05:00
Fix tiny error in Path#smooth()
This commit is contained in:
parent
bfd43b27fa
commit
c284b0837e
1 changed files with 1 additions and 1 deletions
|
@ -336,7 +336,7 @@ var Path = this.Path = PathItem.extend({
|
|||
(knots[n].y + y[n - 1]) / 2);
|
||||
}
|
||||
}
|
||||
if (closed && handleIn) {
|
||||
if (this.closed && handleIn) {
|
||||
var segment = this._segments[0];
|
||||
segment.setHandleIn(handleIn.subtract(segment._point));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue