diff options
author | Alessandro Ranellucci <aar@cpan.org> | 2015-12-19 14:44:22 +0300 |
---|---|---|
committer | Alessandro Ranellucci <aar@cpan.org> | 2015-12-19 14:44:22 +0300 |
commit | a2ea191d8423833641adaf99047b340183d74c66 (patch) | |
tree | 1a67a9f70a56cd0a7b8ff85cc920869f3903c81b /xs/src/libslic3r/GCodeWriter.cpp | |
parent | fd7795da59213d4ae262c549fae7f26a3300e1f1 (diff) |
Fix regression in lift, includes regression test
Diffstat (limited to 'xs/src/libslic3r/GCodeWriter.cpp')
-rw-r--r-- | xs/src/libslic3r/GCodeWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xs/src/libslic3r/GCodeWriter.cpp b/xs/src/libslic3r/GCodeWriter.cpp index 3ec301d70..d932fd83f 100644 --- a/xs/src/libslic3r/GCodeWriter.cpp +++ b/xs/src/libslic3r/GCodeWriter.cpp @@ -500,7 +500,7 @@ GCodeWriter::lift() { 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) + if (this->_pos.z >= above && (below == 0 || this->_pos.z <= below)) target_lift = this->config.retract_lift.get_at(0); } if (this->_lifted == 0 && target_lift > 0) { |