fix intersections to shapes step

This commit is contained in:
Casper Lamboo 2018-02-19 13:53:18 +01:00
parent 793f8100fb
commit 3d308e2533

View File

@ -91,7 +91,7 @@ export default function intersectionsToShapes(layerPoints, layerFaceIndexes, fac
for (let pathIndex = 0; pathIndex < shape.length; pathIndex ++) {
const path = shape[pathIndex];
if (path.length === 2 && almostEquals(path[0], path[1])) continue;
if (almostEquals(path[0], path[path.length - 1])) continue;
let shapeStartPoint = path[0];
for (const point of connectPoints) {