fix ordering connect points

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

View File

@ -120,7 +120,7 @@ export default function intersectionsToShapes(layerPoints, layerFaceIndexes, fac
}
}
connectPoints.sort(({ previous }) => previous);
connectPoints.sort(({ previous }) => -previous);
while (connectPoints.length !== 0) {
let { next, previous } = connectPoints.pop();