Support initial_tool variable for filename format

This commit is contained in:
SoftFever 2023-11-13 22:25:32 +08:00
parent c03d58318a
commit 5213fbfa86
164 changed files with 167 additions and 162 deletions

View file

@ -2578,6 +2578,7 @@ this->placeholder_parser().set("z_offset", new ConfigOptionFloat(m_config.z_offs
m_writer.extruders(),
// Modifies
print.m_print_statistics));
print.m_print_statistics.initial_tool = initial_extruder_id;
if (!is_bbl_printers) {
file.write_format("; total filament used [g] = %.2lf\n",
print.m_print_statistics.total_weight);