Skip to content

Commit cdee364

Browse files
XunZhangBambulanewei120
authored andcommitted
FIX: CLI auto filament map result not synced to plate before 3MF export
In CLI mode, after print->process() computes the auto filament map, the result was not written back to part_plate. This caused the exported 3MF to contain the pre-slice sanitized values (all 1s) instead of the actual computed mapping. jira: none Signed-off-by: xun.zhang <xun.zhang@bambulab.com> Change-Id: I42add9879eaa67fd8e5a9252e26bee2a23c3892e
1 parent 02de9af commit cdee364

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

‎src/BambuStudio.cpp‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7089,6 +7089,16 @@ int CLI::run(int argc, char **argv)
70897089
BOOST_LOG_TRIVIAL(info) << "print::process: first time_using_cache is " << slice_time[TIME_USING_CACHE] << " secs.";
70907090
}
70917091
if (printer_technology == ptFFF) {
7092+
FilamentMapMode current_map_mode = print_fff->config().filament_map_mode.value;
7093+
if (is_auto_filament_map_mode(current_map_mode)) {
7094+
part_plate->set_filament_maps(print_fff->get_filament_maps());
7095+
part_plate->set_filament_volume_maps(print_fff->get_filament_volume_maps());
7096+
}
7097+
if (current_map_mode != FilamentMapMode::fmmNozzleManual) {
7098+
std::vector<int> f_nozzle_maps = print_fff->get_filament_nozzle_maps();
7099+
part_plate->set_filament_nozzle_maps(f_nozzle_maps);
7100+
}
7101+
70927102
std::string conflict_result = print_fff->get_conflict_string();
70937103
if (!conflict_result.empty()) {
70947104
BOOST_LOG_TRIVIAL(error) << "plate "<< index+1<< ": found slicing result conflict!"<< std::endl;

0 commit comments

Comments
 (0)