FIX: add filament type for flow rate slice info

Change-Id: I21cee225cc4349774216eda730ba086bf3697b00
This commit is contained in:
zhimin.zeng 2023-07-12 12:27:28 +08:00 committed by Lane.Wei
parent 031a678ea0
commit f03d28c13b
2 changed files with 3 additions and 2 deletions

View file

@ -157,7 +157,7 @@ bool CalibrationWizard::save_preset(const std::string &old_preset_name, const st
PresetCollection *filament_presets = &wxGetApp().preset_bundle->filaments;
Preset* preset = filament_presets->find_preset(old_preset_name);
if (!preset) {
message = L("The selected preset has been deleted.");
message = (boost::format(L("The selected preset: %1% is not found.")) % old_preset_name).str();
return false;
}

View file

@ -805,7 +805,8 @@ void CalibUtils::process_and_store_3mf(Model* model, const DynamicPrintConfig& f
for (auto plate_data : plate_data_list) {
plate_data->gcode_file = temp_gcode_path;
plate_data->is_sliced_valid = true;
plate_data->slice_filaments_info;
FilamentInfo& filament_info = plate_data->slice_filaments_info.front();
filament_info.type = full_config.opt_string("filament_type", 0);
}
//draw thumbnails