FIX: Z hop is still enabled when upper boundary is zero.

Jira: STUDIO-4893

Signed-off-by: wenjie.guo <wenjie.guo@bambulab.com>
Change-Id: I5f46a02e1fbb15ff43e253e3a184aa6cc38e7598
This commit is contained in:
wenjie.guo 2023-11-06 14:10:29 +08:00 committed by Lane.Wei
parent 8aa0c06137
commit 79eb44635d
2 changed files with 3 additions and 1 deletions

View file

@ -687,7 +687,7 @@ std::string GCodeWriter::lift(LiftType lift_type, bool spiral_vase)
//BBS
double above = this->config.retract_lift_above.get_at(m_extruder->id());
double below = this->config.retract_lift_below.get_at(m_extruder->id());
if (m_pos.z() >= above && (below == 0 || m_pos.z() <= below))
if (m_pos.z() >= above && m_pos.z() <= below)
target_lift = this->config.z_hop.get_at(m_extruder->id());
}
// BBS