From 8a51753e1b8241cb3b5d6bf3a9105a5b70e9f3d1 Mon Sep 17 00:00:00 2001 From: Stewart Allen Date: Mon, 20 Apr 2020 08:48:08 -0400 Subject: [PATCH] re-fix slice on flat for fdm --- js/kiri-slicer.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/js/kiri-slicer.js b/js/kiri-slicer.js index 9388157e..ebb29afd 100644 --- a/js/kiri-slicer.js +++ b/js/kiri-slicer.js @@ -443,10 +443,12 @@ let gs_kiri_slicer = exports; if (onflat) { // annotate slices with cam flats for finishing waterlines - if (options.cam) slice.hasFlats = true; - // since default onflat pushes Z down by 0.001 and in cam - // mode we want the opposite, overcompsate above the Z - z += 0.002; + if (options.cam) { + slice.hasFlats = true; + // since default onflat pushes Z down by 0.001 and in cam + // mode we want the opposite, overcompsate above the Z + z += 0.002; + } } // iterate over matching buckets for this z offset