mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-07-24 00:04:26 +08:00
fix layer_time
This commit is contained in:
parent
22492fe242
commit
ec6a7a4576
@ -2380,7 +2380,7 @@ void GCode::process_layer(
|
|||||||
|
|
||||||
#if ENABLE_GCODE_VIEWER
|
#if ENABLE_GCODE_VIEWER
|
||||||
// add tag for processor
|
// add tag for processor
|
||||||
gcode += "; " + GCodeProcessor::Layer_Change_Tag + "\n";
|
gcode += ";" + GCodeProcessor::Layer_Change_Tag + "\n";
|
||||||
// export layer z
|
// export layer z
|
||||||
char buf[64];
|
char buf[64];
|
||||||
sprintf(buf, ";Z:%g\n", print_z);
|
sprintf(buf, ";Z:%g\n", print_z);
|
||||||
|
@ -394,10 +394,11 @@ void GCodeProcessor::TimeProcessor::post_process(const std::string& filename)
|
|||||||
// check for temporary lines
|
// check for temporary lines
|
||||||
auto is_temporary_decoration = [](const std::string& gcode_line) {
|
auto is_temporary_decoration = [](const std::string& gcode_line) {
|
||||||
// remove trailing '\n'
|
// remove trailing '\n'
|
||||||
std::string line = gcode_line.substr(0, gcode_line.length() - 1);
|
//std::string line = gcode_line.substr(0, gcode_line.length() - 1);
|
||||||
if (line == "; " + Layer_Change_Tag)
|
// Don't remove Layer_Change_Tag, it will render the layer_time view unusable
|
||||||
return true;
|
//if (line == "; " + Layer_Change_Tag)
|
||||||
else
|
// return true;
|
||||||
|
//else
|
||||||
return false;
|
return false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user