mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
FIX: cannot send manual cali for H2D
jira: none Change-Id: Iceb7db15d5d32d2db04c01527dad65022d580772 (cherry picked from commit 023b5efc4ca4c0e049a6e39cd39830dae73681eb)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user