mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-13 09:47:58 -06:00
Bugfix: use Lift-z option for 2. extruder #3385
Thanks to https://github.com/platsch https://github.com/alexrj/Slic3r/pull/3392
This commit is contained in:
parent
edc70e27d9
commit
088b0dab90
2 changed files with 7 additions and 7 deletions
|
@ -500,10 +500,10 @@ GCodeWriter::lift()
|
|||
// 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);
|
||||
double above = this->config.retract_lift_above.get_at(this->_extruder->id);
|
||||
double below = this->config.retract_lift_below.get_at(this->_extruder->id);
|
||||
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) {
|
||||
this->_lifted = target_lift;
|
||||
|
|
|
@ -60,6 +60,6 @@ class GCodeWriter {
|
|||
std::string _retract(double length, double restart_extra, const std::string &comment);
|
||||
};
|
||||
|
||||
}
|
||||
} /* namespace Slic3r */
|
||||
|
||||
#endif
|
||||
#endif /* slic3r_GCodeWriter_hpp_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue