fix filled shapes

This commit is contained in:
Casper Lamboo 2018-03-06 17:35:03 +01:00
parent e056b37677
commit cd8687d148

View File

@ -95,7 +95,11 @@ export default function intersectionsToShapes(layerPoints, layerFaceIndexes, fac
const path = shape[pathIndex]; const path = shape[pathIndex];
if (almostEquals(path[0], path[path.length - 1])) { if (almostEquals(path[0], path[path.length - 1])) {
lineShapesClosed.push(path); if (openShape) {
lineShapesClosed.push(path);
} else {
fillShapes.push(path);
}
continue; continue;
} }