From de5cbc5550fabe63d1d7052f7f367e66cf1581b8 Mon Sep 17 00:00:00 2001 From: Remco Burema Date: Tue, 25 Jun 2024 15:09:41 +0200 Subject: [PATCH] Prevent negative (= raft) layers from messing up z-seam calculation. Not part of a ticket (yet?), done as a quick-fix. --- src/FffGcodeWriter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FffGcodeWriter.cpp b/src/FffGcodeWriter.cpp index 0b3d71df86..61899373d3 100644 --- a/src/FffGcodeWriter.cpp +++ b/src/FffGcodeWriter.cpp @@ -3469,7 +3469,7 @@ bool FffGcodeWriter::processSupportInfill(const SliceDataStorage& storage, Layer ZSeamConfig z_seam_config = ZSeamConfig(EZSeamType::SHORTEST, gcode_layer.getLastPlannedPositionOrStartingPosition(), EZSeamCornerPrefType::Z_SEAM_CORNER_PREF_NONE, false); Shape disallowed_area_for_seams{}; - if (infill_extruder.settings_.get("support_z_seam_away_from_model")) + if (infill_extruder.settings_.get("support_z_seam_away_from_model") && (gcode_layer.getLayerNr() >= 0)) { for (std::shared_ptr mesh_ptr : storage.meshes) {