Add total layer count in the gcode footer.

supermerill/SuperSlicer#1886
This commit is contained in:
supermerill 2021-11-16 21:18:31 +01:00
parent b1d4a4faf8
commit d020d048e9

View File

@ -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); _write_format(file, "; total filament cost = %.2lf\n", print.m_print_statistics.total_cost);
if (print.m_print_statistics.total_toolchanges > 0) 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 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); _writeln(file, GCodeProcessor::Estimated_Printing_Time_Placeholder_Tag);
// Append full config. // Append full config.