From 5c26aaa31e2676c6d3fdb8935e263ebfc7aeb543 Mon Sep 17 00:00:00 2001 From: Stewart Allen Date: Sat, 1 May 2021 01:01:15 -0400 Subject: [PATCH] fix retractions in vase mode that could affect a few other corner cases, too --- src/kiri/print.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/kiri/print.js b/src/kiri/print.js index 86056a1a..13b53120 100644 --- a/src/kiri/print.js +++ b/src/kiri/print.js @@ -587,7 +587,6 @@ // returns false if routed around or no retract function routeAround(p1, p2) { const dbug = false; - if (dbug === slice.index) console.log(slice.index, {p1, p2, d: p1.distTo2D(p2)}); let ints = []; @@ -1026,6 +1025,10 @@ outputFills(next.fill, {fast: true}); } } else { + if (lastTop && lastTop !== next) { + retract(); + } + // control of layer start point switch (process.sliceLayerStart) { case "center":