diff options
author | supermerill <merill@free.fr> | 2021-11-16 23:18:31 +0300 |
---|---|---|
committer | supermerill <merill@free.fr> | 2021-11-16 19:21:04 +0300 |
commit | d020d048e982133196e8f918c54b005f3efa8fa6 (patch) | |
tree | 7e3cab86fb26fc9156f111326658d9995926dbcd | |
parent | b1d4a4faf8c6aa8999917afcf5c08c5e70243837 (diff) |
Add total layer count in the gcode footer.
supermerill/SuperSlicer#1886
-rw-r--r-- | src/libslic3r/GCode.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libslic3r/GCode.cpp b/src/libslic3r/GCode.cpp index b792985d3..e1fd3d58a 100644 --- a/src/libslic3r/GCode.cpp +++ b/src/libslic3r/GCode.cpp @@ -1704,6 +1704,7 @@ void GCode::_do_export(Print& print, FILE* file, ThumbnailsGeneratorCallback thu _write_format(file, "; total filament cost = %.2lf\n", print.m_print_statistics.total_cost); if (print.m_print_statistics.total_toolchanges > 0) _write_format(file, "; total toolchanges = %i\n", print.m_print_statistics.total_toolchanges); + _write_format(file, "; total layers count = %i\n", m_layer_count); _writeln(file, GCodeProcessor::Estimated_Printing_Time_Placeholder_Tag); // Append full config. |