From af7ebbfab6e221e0594e61c5c91e8e4d1107ed2b Mon Sep 17 00:00:00 2001 From: PavelMikus Date: Wed, 24 Aug 2022 12:38:04 +0200 Subject: [PATCH] make sure inner loop has length > 0 during shifting --- src/libslic3r/GCode/SeamPlacer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libslic3r/GCode/SeamPlacer.cpp b/src/libslic3r/GCode/SeamPlacer.cpp index 8cfdde4328..032f852dd2 100644 --- a/src/libslic3r/GCode/SeamPlacer.cpp +++ b/src/libslic3r/GCode/SeamPlacer.cpp @@ -1637,7 +1637,7 @@ void SeamPlacer::place_seam(const Layer *layer, ExtrusionLoop &loop, bool extern seam_point = projected_point.foot_pt; //lastly, for internal perimeters, do the shifting if needed - if (po->config().shifted_inner_seams) { + if (po->config().shifted_inner_seams && loop.length() > 0.0) { //fix depth, it is sometimes strongly underestimated depth = std::max(loop.paths[projected_point.path_idx].width, depth);