mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-19 14:10:14 -05:00
Fix drawing of closed path with only one segment.
This commit is contained in:
parent
f166b08257
commit
054356c78d
1 changed files with 1 additions and 1 deletions
|
@ -2018,7 +2018,7 @@ var Path = PathItem.extend(/** @lends Path# */{
|
||||||
for (var i = 0; i < length; i++)
|
for (var i = 0; i < length; i++)
|
||||||
drawSegment(i);
|
drawSegment(i);
|
||||||
// Close path by drawing first segment again
|
// Close path by drawing first segment again
|
||||||
if (path._closed && length > 1)
|
if (path._closed)
|
||||||
drawSegment(0);
|
drawSegment(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue