Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsupermerill <merill@free.fr>2021-11-16 23:18:31 +0300
committersupermerill <merill@free.fr>2021-11-16 19:21:04 +0300
commitd020d048e982133196e8f918c54b005f3efa8fa6 (patch)
tree7e3cab86fb26fc9156f111326658d9995926dbcd
parentb1d4a4faf8c6aa8999917afcf5c08c5e70243837 (diff)
Add total layer count in the gcode footer.
supermerill/SuperSlicer#1886
-rw-r--r--src/libslic3r/GCode.cpp1
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.