FIX: fix adjust of cooling time
Signed-off-by: qing.zhang <qing.zhang@bambulab.com> Change-Id: I5eae0ed7e53fddb18c99f510373ba5a687fd2c8e
This commit is contained in:
parent
c909fd9178
commit
0b0a1a3d48
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue