Fix Z offset for 1st layer (#11011)

This commit is contained in:
Kiss Lorand 2025-10-20 16:49:06 +03:00 committed by GitHub
parent e6a4ddf32d
commit f2e6a4c08e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5230,9 +5230,9 @@ std::string GCode::_extrude(const ExtrusionPath &path, std::string description,
sloped == nullptr ? DBL_MAX : get_sloped_z(sloped->slope_begin.z_ratio)
);
m_need_change_layer_lift_z = false;
// Orca: force restore Z after unknown last pos
// Orca: ensure Z matches planned layer height
if (_last_pos_undefined && !slope_need_z_travel) {
gcode += this->writer().travel_to_z(m_last_layer_z, "force restore Z after unknown last pos", true);
gcode += this->writer().travel_to_z(m_nominal_z, "ensure Z matches planned layer height", true);
}
}