mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Restore full validation check for resulting paths.
This commit is contained in:
parent
c006b081f6
commit
83b68cdb8e
1 changed files with 2 additions and 1 deletions
|
@ -176,7 +176,8 @@ PathItem.inject(new function() {
|
|||
segment = segment.getNext();
|
||||
} while (segment && !segment._visited && segment !== intersection);
|
||||
// Avoid stray segments and incomplete paths
|
||||
if (path._segments.length > 2 || !path.isPolygon()) {
|
||||
var amount = path._segments.length;
|
||||
if (amount > 1 && (amount > 2 || !path.isPolygon())) {
|
||||
path.setClosed(true);
|
||||
result.addChild(path, true);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue