Fixed a bug where the scarf seam wouldn't work properly when ZAA was disabled.

This commit is contained in:
SoftFever
2026-04-28 18:46:56 +08:00
parent 24172e6898
commit 2957508b4a

View File

@@ -6248,7 +6248,7 @@ std::string GCode::_extrude(const ExtrusionPath &path, std::string description,
gcode += m_writer.travel_to_z(first_z, "set Z for contouring", true);
}
}
if (!path.z_contoured) {
if (!path.z_contoured && sloped == nullptr) {
double current_z = m_writer.get_position().z();
if (GCodeFormatter::quantize_xyzf(current_z) != GCodeFormatter::quantize_xyzf(m_nominal_z)) {
gcode += this->writer().travel_to_z(m_nominal_z, "reset Z after contouring", true);