From 4fb2caee538534da900062a4534dc6e74e9f2f85 Mon Sep 17 00:00:00 2001 From: casperlamboo Date: Fri, 26 May 2017 16:56:05 +0200 Subject: [PATCH] re enable applying and removing precision for open shapes --- src/sliceActions/applyPrecision.js | 2 +- src/sliceActions/removePrecision.js | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/sliceActions/applyPrecision.js b/src/sliceActions/applyPrecision.js index c13beb6..8fa3187 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 7c000bd..9a684db 100644 --- a/src/sliceActions/removePrecision.js +++ b/src/sliceActions/removePrecision.js @@ -19,10 +19,9 @@ 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) {