mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -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++)
|
||||
drawSegment(i);
|
||||
// Close path by drawing first segment again
|
||||
if (path._closed && length > 1)
|
||||
if (path._closed)
|
||||
drawSegment(0);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue