Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsupermerill <merill@free.fr>2022-09-07 22:08:49 +0300
committersupermerill <merill@free.fr>2022-09-16 17:26:46 +0300
commit9c81fa474950e5c11ff63c045740d9f5c946c2fb (patch)
treece35cb64ae3eef12370d4369dc86b69048f88c4f
parent5efbb72f6c39a1272d3559a1b91be40e9c4f2810 (diff)
wipetower with klipper: don't pass the extruder to SET_PRESSURE_ADVANCE if the extruder name is blank
supermerill/SuperSlicer#3073
-rw-r--r--src/libslic3r/GCode/WipeTower.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/libslic3r/GCode/WipeTower.cpp b/src/libslic3r/GCode/WipeTower.cpp
index ab9bcac9d..ee18e6d10 100644
--- a/src/libslic3r/GCode/WipeTower.cpp
+++ b/src/libslic3r/GCode/WipeTower.cpp
@@ -96,10 +96,7 @@ public:
&& m_tool_name[this->m_current_tool][0] != static_cast<char>(('0' + this->m_current_tool))) {
m_gcode += "SET_PRESSURE_ADVANCE ADVANCE=0 EXTRUDER=" + m_tool_name[this->m_current_tool] + "\n";
} else {
- m_gcode += "SET_PRESSURE_ADVANCE ADVANCE=0 EXTRUDER=extruder";
- if (this->m_current_tool > 0)
- m_gcode += std::to_string(this->m_current_tool);
- m_gcode += "\n";
+ m_gcode += "SET_PRESSURE_ADVANCE ADVANCE=0\n";
}
} else {
m_gcode += std::string("M900 K0\n");