mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Fix issue that broke "Maximum possible intersections between 2 cubic bezier curve segments - 9" test.
This commit is contained in:
parent
d9e2d2a94a
commit
c006b081f6
1 changed files with 1 additions and 1 deletions
|
@ -176,7 +176,7 @@ PathItem.inject(new function() {
|
|||
segment = segment.getNext();
|
||||
} while (segment && !segment._visited && segment !== intersection);
|
||||
// Avoid stray segments and incomplete paths
|
||||
if (path._segments.length > 2) {
|
||||
if (path._segments.length > 2 || !path.isPolygon()) {
|
||||
path.setClosed(true);
|
||||
result.addChild(path, true);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue