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
Not part of a ticket (yet?), done as a quick-fix.
  • Loading branch information
rburema committed Jun 25, 2024
1 parent f4abac6 commit de5cbc5
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 de5cbc5

Please sign in to comment.