From a3f5c398da8367285fba9137c9b6a73de5c4e2eb Mon Sep 17 00:00:00 2001 From: Casper Lamboo Date: Tue, 6 Mar 2018 17:44:01 +0100 Subject: [PATCH] fix ordering connect points --- src/sliceActions/intersectionsToShapes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sliceActions/intersectionsToShapes.js b/src/sliceActions/intersectionsToShapes.js index 20049e0..25ba3e2 100644 --- a/src/sliceActions/intersectionsToShapes.js +++ b/src/sliceActions/intersectionsToShapes.js @@ -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();