From f27ec3f2261c0cd9e7601c0972827a724eb24932 Mon Sep 17 00:00:00 2001 From: bubnikv Date: Wed, 17 May 2017 16:59:56 +0200 Subject: [PATCH] Prusa Multi Material wipe tower: Do an unretract before doing the wipe tower things. --- xs/src/libslic3r/GCode.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xs/src/libslic3r/GCode.cpp b/xs/src/libslic3r/GCode.cpp index 9377847b5..d17287837 100644 --- a/xs/src/libslic3r/GCode.cpp +++ b/xs/src/libslic3r/GCode.cpp @@ -909,6 +909,7 @@ void GCode::process_layer( // Move over the wipe tower. gcode += m_writer.travel_to_xy(Pointf3(m_wipe_tower->position().x, m_wipe_tower->position().y)); gcode += m_writer.unlift(); + gcode += m_writer.unretract(); // Let the tool change be executed by the wipe tower class. std::pair code_and_pos = m_wipe_tower->finish_layer(); // Inform the G-code writer about the changes done behind its back. @@ -1936,6 +1937,7 @@ std::string GCode::wipe_tower_tool_change(int extruder_id) // Move over the wipe tower. std::string gcode = m_writer.travel_to_xy(Pointf3(m_wipe_tower->position().x, m_wipe_tower->position().y)); gcode += m_writer.unlift(); + gcode += m_writer.unretract(); // Let the tool change be executed by the wipe tower class. std::pair code_and_pos = m_wipe_tower->tool_change(extruder_id); // Inform the G-code writer about the changes done behind its back.