From 1152bd5a09bb329caa7d8f3657fa33472b1ccaa9 Mon Sep 17 00:00:00 2001 From: Lukas Matena Date: Mon, 17 Jun 2019 11:22:17 +0200 Subject: [PATCH] Fixup of 41164a9 The WipeTowerWriter did not now which tool is being used, so it limited the volumetric flow based on different filament settings --- src/libslic3r/GCode/WipeTower.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/libslic3r/GCode/WipeTower.cpp b/src/libslic3r/GCode/WipeTower.cpp index e901ba296..52601886c 100644 --- a/src/libslic3r/GCode/WipeTower.cpp +++ b/src/libslic3r/GCode/WipeTower.cpp @@ -307,9 +307,6 @@ public: WipeTowerWriter& set_tool(int tool) { - char buf[64]; - sprintf(buf, "T%d\n", tool); - m_gcode += buf; m_current_tool = tool; return *this; } @@ -920,7 +917,7 @@ void WipeTower::toolchange_Change( // The toolchange Tn command will be inserted later, only in case that the user does // not provide a custom toolchange gcode. - //writer.set_tool(new_tool); + writer.set_tool(new_tool); // This outputs nothing, the writer just needs to know the tool has changed. writer.append("[start_filament_gcode]\n"); writer.flush_planner_queue();