mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -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();
|
segment = segment.getNext();
|
||||||
} while (segment && !segment._visited && segment !== intersection);
|
} while (segment && !segment._visited && segment !== intersection);
|
||||||
// Avoid stray segments and incomplete paths
|
// Avoid stray segments and incomplete paths
|
||||||
if (path._segments.length > 2) {
|
if (path._segments.length > 2 || !path.isPolygon()) {
|
||||||
path.setClosed(true);
|
path.setClosed(true);
|
||||||
result.addChild(path, true);
|
result.addChild(path, true);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue