From d020d048e982133196e8f918c54b005f3efa8fa6 Mon Sep 17 00:00:00 2001 From: supermerill Date: Tue, 16 Nov 2021 21:18:31 +0100 Subject: [PATCH] Add total layer count in the gcode footer. supermerill/SuperSlicer#1886 --- src/libslic3r/GCode.cpp | 1 + 1 file changed, 1 insertion(+) 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.