Skip to content

Commit

Permalink
Revert "Avoid collisions when moving Z down" (SoftFever#8478)
Browse files Browse the repository at this point in the history
Revert "Avoid collisions when moving Z down (SoftFever#7208)"

This reverts commit cf6d9c7.
  • Loading branch information
SoftFever authored Feb 21, 2025
1 parent b82d13a commit 873a6f5
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/libslic3r/GCodeWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -447,12 +447,6 @@ std::string GCodeWriter::travel_to_xyz(const Vec3d &point, const std::string &co
// this function, fix it first.
//std::terminate();

// Orca: If moving down during below the current layer nominal Z, force XY->Z moves to avoid collisions with previous extrusions
double nominal_z = m_pos(2) - m_lifted;
if (point(2) < nominal_z - EPSILON) { // EPSILON to avoid false matches due to rounding errors
this->set_current_position_clear(false); // This forces XYZ moves to be split into XY->Z
}

/* If target Z is lower than current Z but higher than nominal Z we
don't perform the Z move but we only move in the XY plane and
adjust the nominal Z by reducing the lift amount that will be
Expand Down

0 comments on commit 873a6f5

Please sign in to comment.