diff options
author | Lukas Matena <lukasmatena@seznam.cz> | 2018-06-28 11:22:04 +0300 |
---|---|---|
committer | Lukas Matena <lukasmatena@seznam.cz> | 2018-06-28 11:22:04 +0300 |
commit | 19f5863d75b286e7459f2ce163ec5e5befe1ac78 (patch) | |
tree | d32c4621eed8f56f490f87b7808b7b155352651f /xs | |
parent | 930a2f1d1203ae8c5205b9fcacb70368b9deebb9 (diff) |
Wipe tower fix - incorrect start/end position reported to the GCode generator when the tower was rotated
Diffstat (limited to 'xs')
-rw-r--r-- | xs/src/libslic3r/GCode/WipeTowerPrusaMM.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xs/src/libslic3r/GCode/WipeTowerPrusaMM.cpp b/xs/src/libslic3r/GCode/WipeTowerPrusaMM.cpp index fbde83754..5aa6470a2 100644 --- a/xs/src/libslic3r/GCode/WipeTowerPrusaMM.cpp +++ b/xs/src/libslic3r/GCode/WipeTowerPrusaMM.cpp @@ -142,10 +142,10 @@ public: } m_gcode += "G1"; - if (std::abs(dx) > EPSILON) + if (std::abs(rot.x - rotated_current_pos.x) > EPSILON) m_gcode += set_format_X(rot.x); - if (std::abs(dy) > EPSILON) + if (std::abs(rot.y - rotated_current_pos.y) > EPSILON) m_gcode += set_format_Y(rot.y); if (e != 0.f) |