mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 19:33:47 +00:00
Fix Z offset for 1st layer (#11011)
This commit is contained in:
@@ -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)
|
sloped == nullptr ? DBL_MAX : get_sloped_z(sloped->slope_begin.z_ratio)
|
||||||
);
|
);
|
||||||
m_need_change_layer_lift_z = false;
|
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) {
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user