mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-01 23:20:37 +08:00
Add total layer count in the gcode footer.
supermerill/SuperSlicer#1886
This commit is contained in:
parent
b1d4a4faf8
commit
d020d048e9
@ -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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user