Added a marker for the ooze prevention cooldown commands

This commit is contained in:
Lukas Matena 2023-02-22 13:49:17 +01:00
parent 943eb5b4fe
commit 211b8cdc90
2 changed files with 5 additions and 1 deletions
src/libslic3r/GCode

View file

@ -4004,7 +4004,7 @@ void GCodeProcessor::post_process()
reader.parse_line(line, [&gline](GCodeReader& reader, const GCodeReader::GCodeLine& l) { gline = l; });
float val;
if (gline.has_value('T', val)) {
if (gline.has_value('T', val) && gline.raw().find("cooldown") != std::string::npos) {
if (static_cast<int>(val) == tool_number)
return std::string("; removed M104\n");
}