mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-01-29 04:10:47 -07:00
Fix: Bring back "Only lift Z below" can be disabled (#11440)
Let "Only lift Z below" to be disabled
This commit is contained in:
parent
e6b93f9b90
commit
cc585a646b
1 changed files with 2 additions and 2 deletions
|
|
@ -565,7 +565,7 @@ std::string GCodeWriter::lazy_lift(LiftType lift_type, bool spiral_vase)
|
|||
int filament_id = filament()->id();
|
||||
double above = this->config.retract_lift_above.get_at(extruder_id);
|
||||
double below = this->config.retract_lift_below.get_at(extruder_id);
|
||||
if (m_pos.z() >= above && m_pos.z() <= below)
|
||||
if (m_pos.z() >= above && (m_pos.z() <= below || below == 0.))
|
||||
target_lift = this->config.z_hop.get_at(filament_id);
|
||||
}
|
||||
// BBS
|
||||
|
|
@ -593,7 +593,7 @@ std::string GCodeWriter::eager_lift(const LiftType type) {
|
|||
int filament_id = filament()->id();
|
||||
double above = this->config.retract_lift_above.get_at(extruder_id);
|
||||
double below = this->config.retract_lift_below.get_at(extruder_id);
|
||||
if (m_pos.z() >= above && m_pos.z() <= below)
|
||||
if (m_pos.z() >= above && (m_pos.z() <= below || below == 0.))
|
||||
target_lift = this->config.z_hop.get_at(filament_id);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue