Skip to content

Commit

Permalink
Prevent negative (= raft) layers from messing up z-seam calculation. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
wawanbreton authored Jun 25, 2024
2 parents f4abac6 + de5cbc5 commit b1986ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FffGcodeWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<bool>("support_z_seam_away_from_model"))
if (infill_extruder.settings_.get<bool>("support_z_seam_away_from_model") && (gcode_layer.getLayerNr() >= 0))
{
for (std::shared_ptr<SliceMeshStorage> mesh_ptr : storage.meshes)
{
Expand Down

0 comments on commit b1986ae

Please sign in to comment.