FIX: cannot send manual cali for H2D

jira: none
Change-Id: Iceb7db15d5d32d2db04c01527dad65022d580772
(cherry picked from commit 023b5efc4ca4c0e049a6e39cd39830dae73681eb)
This commit is contained in:
zhimin.zeng
2025-06-10 16:13:02 +08:00
committed by Noisyfox
parent e1626c26b1
commit b0e2c37370

View File

@@ -1313,9 +1313,22 @@ bool CalibUtils::process_and_store_3mf(Model *model, const DynamicPrintConfig &f
PlateDataPtrs plate_data_list;
partplate_list.store_to_3mf_structure(plate_data_list, true, 0);
DeviceManager *dev = Slic3r::GUI::wxGetApp().getDeviceManager();
if (!dev) {
error_message = _L("Need select printer");
return false;
}
MachineObject *obj_ = dev->get_selected_machine();
if (obj_ == nullptr) {
error_message = _L("Need select printer");
return false;
}
for (auto plate_data : plate_data_list) {
plate_data->gcode_file = temp_gcode_path;
plate_data->is_sliced_valid = true;
plate_data->printer_model_id = obj_->printer_type;
FilamentInfo& filament_info = plate_data->slice_filaments_info.front();
filament_info.type = full_config.opt_string("filament_type", 0);
}