From 721b75b1f54d92eb15e489e07737228a83144f37 Mon Sep 17 00:00:00 2001 From: casperlamboo Date: Fri, 19 May 2017 11:56:53 +0200 Subject: [PATCH] Don't scale up or scale down open shapes --- src/sliceActions/applyPrecision.js | 2 +- src/sliceActions/removePrecision.js | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/sliceActions/applyPrecision.js b/src/sliceActions/applyPrecision.js index 8fa3187..c13beb6 100644 --- a/src/sliceActions/applyPrecision.js +++ b/src/sliceActions/applyPrecision.js @@ -5,7 +5,7 @@ export default function applyPrecision(shapes) { const { closedShapes, openShapes } = shapes[i]; scaleUpShape(closedShapes); - scaleUpShape(openShapes); + // scaleUpShape(openShapes); } } diff --git a/src/sliceActions/removePrecision.js b/src/sliceActions/removePrecision.js index 9a684db..7c000bd 100644 --- a/src/sliceActions/removePrecision.js +++ b/src/sliceActions/removePrecision.js @@ -19,9 +19,10 @@ export default function removePrecision(slices) { innerLine.scaleDown(inversePrecision); } part.fill.scaleDown(inversePrecision); - } else { - part.shape.scaleDown(inversePrecision); } + // else { + // part.shape.scaleDown(inversePrecision); + // } } if (slice.support !== undefined) {