mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
Close closed paths when drawing using Context#closePath(). Fixes #72
This commit is contained in:
parent
b75e75f586
commit
c339ffca35
1 changed files with 3 additions and 0 deletions
|
@ -1451,6 +1451,9 @@ var Path = this.Path = PathItem.extend(/** @lends Path# */{
|
||||||
drawSegments(ctx, this);
|
drawSegments(ctx, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this._closed)
|
||||||
|
ctx.closePath();
|
||||||
|
|
||||||
if (this._clipMask) {
|
if (this._clipMask) {
|
||||||
ctx.clip();
|
ctx.clip();
|
||||||
} else if (!param.compound && (fillColor || strokeColor)) {
|
} else if (!param.compound && (fillColor || strokeColor)) {
|
||||||
|
|
Loading…
Reference in a new issue