ENH: save filament change count in gcode result

1.Save filament change count per filament

jira:NONE

Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: I26e7963c0b5fdcca7c7d0ec5590c3f40c1fc5eed
(cherry picked from commit 759d78dd2bad7157af8d41570ff24e5f7c4a364f)
This commit is contained in:
xun.zhang 2024-12-30 20:59:48 +08:00 committed by Noisyfox
parent 55ec1da34f
commit f636c494cd
3 changed files with 25 additions and 3 deletions

View file

@ -1437,6 +1437,8 @@ void GCodeProcessorResult::reset() {
filament_costs = std::vector<float>(MIN_EXTRUDERS_COUNT, DEFAULT_FILAMENT_COST);
custom_gcode_per_print_z = std::vector<CustomGCode::Item>();
spiral_vase_layers = std::vector<std::pair<float, std::pair<size_t, size_t>>>();
layer_filaments.clear();
filament_change_count_map.clear();
warnings.clear();
//BBS: add mutex for protection of gcode result