From 0b0a1a3d48649d2ae523d2c0cab618d87fe0fffa Mon Sep 17 00:00:00 2001 From: "qing.zhang" Date: Tue, 14 Feb 2023 12:13:48 +0800 Subject: [PATCH] FIX: fix adjust of cooling time Signed-off-by: qing.zhang Change-Id: I5eae0ed7e53fddb18c99f510373ba5a687fd2c8e --- src/libslic3r/GCode/CoolingBuffer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libslic3r/GCode/CoolingBuffer.cpp b/src/libslic3r/GCode/CoolingBuffer.cpp index 8a6209b8d..e7494bd40 100644 --- a/src/libslic3r/GCode/CoolingBuffer.cpp +++ b/src/libslic3r/GCode/CoolingBuffer.cpp @@ -349,9 +349,9 @@ std::vector CoolingBuffer::parse_layer_gcode(const std:: ++ line_end; CoolingLine line(0, line_start - gcode.c_str(), line_end - gcode.c_str()); - std::string prefix = Slic3r::GCodeProcessor::reserved_tag(GCodeProcessor::ETags::Layer_Change); + std::string prefix = ";" + Slic3r::GCodeProcessor::reserved_tag(GCodeProcessor::ETags::Layer_Change); - if (boost::starts_with(sline, "; " + prefix)) { + if (boost::starts_with(sline, prefix)) { layer_change = true; layer_print = false; continue; @@ -359,7 +359,7 @@ std::vector CoolingBuffer::parse_layer_gcode(const std:: prefix = Slic3r::GCodeProcessor::reserved_tag(GCodeProcessor::ETags::Role); std::string role = ExtrusionEntity::role_to_string(erWipeTower).c_str(); - if (layer_change && boost::starts_with(sline, "; " + prefix) && !boost::starts_with(sline, "; " + prefix + role)) { + if (layer_change && boost::starts_with(sline, ";" + prefix) && !boost::starts_with(sline, ";" + prefix + role)) { layer_change = false; layer_print = true; continue;