fix point sorting

This commit is contained in:
Rick Companje 2018-11-27 15:47:34 +01:00
parent cbc439b4dc
commit 766cadcd44

View File

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