FIX: fix adjust of cooling time

Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: I5eae0ed7e53fddb18c99f510373ba5a687fd2c8e
This commit is contained in:
qing.zhang 2023-02-14 12:13:48 +08:00 committed by Lane.Wei
parent c909fd9178
commit 0b0a1a3d48
1 changed files with 3 additions and 3 deletions

View File

@ -349,9 +349,9 @@ std::vector<PerExtruderAdjustments> CoolingBuffer::parse_layer_gcode(const std::
++ line_end; ++ line_end;
CoolingLine line(0, line_start - gcode.c_str(), line_end - gcode.c_str()); 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_change = true;
layer_print = false; layer_print = false;
continue; continue;