mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-02 06:40:40 +08:00
Bugfix: use Lift-z option for 2. extruder #3385
This commit is contained in:
parent
7ddbd092f6
commit
468d0eac94
@ -500,10 +500,10 @@ GCodeWriter::lift()
|
|||||||
// check whether the above/below conditions are met
|
// check whether the above/below conditions are met
|
||||||
double target_lift = 0;
|
double target_lift = 0;
|
||||||
{
|
{
|
||||||
double above = this->config.retract_lift_above.get_at(0);
|
double above = this->config.retract_lift_above.get_at(this->_extruder->id);
|
||||||
double below = this->config.retract_lift_below.get_at(0);
|
double below = this->config.retract_lift_below.get_at(this->_extruder->id);
|
||||||
if (this->_pos.z >= above && (below == 0 || this->_pos.z <= below))
|
if (this->_pos.z >= above && (below == 0 || this->_pos.z <= below))
|
||||||
target_lift = this->config.retract_lift.get_at(0);
|
target_lift = this->config.retract_lift.get_at(this->_extruder->id);
|
||||||
}
|
}
|
||||||
if (this->_lifted == 0 && target_lift > 0) {
|
if (this->_lifted == 0 && target_lift > 0) {
|
||||||
this->_lifted = target_lift;
|
this->_lifted = target_lift;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user