mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-14 19:12:38 -07:00
@@ -495,7 +495,14 @@ GCodeWriter::unretract()
|
||||
std::string
|
||||
GCodeWriter::lift()
|
||||
{
|
||||
double target_lift = this->config.retract_lift.get_at(0);
|
||||
// check whether the above/below conditions are met
|
||||
double target_lift = 0;
|
||||
{
|
||||
double above = this->config.retract_lift_above.get_at(0);
|
||||
double below = this->config.retract_lift_below.get_at(0);
|
||||
if (this->_pos.z >= above && this->_pos.z <= below && below > 0)
|
||||
target_lift = this->config.retract_lift.get_at(0);
|
||||
}
|
||||
if (this->_lifted == 0 && target_lift > 0) {
|
||||
this->_lifted = target_lift;
|
||||
return this->_travel_to_z(this->_pos.z + target_lift, "lift Z");
|
||||
|
||||
Reference in New Issue
Block a user