mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-27 21:02:23 +00:00
FIX: fix crash when cannot find preset
jira: STUDIO-9422 Change-Id: If81e1ac9379ccbc4b40cbda5cf8cb876ea230173 (cherry picked from commit 758d37d0807288cf63fa2b7487a65d7097b94e8e)
This commit is contained in:
@@ -1507,6 +1507,8 @@ void CalibrationPresetPage::update_combobox_filaments(MachineObject* obj)
|
||||
}
|
||||
|
||||
Preset* printer_preset = get_printer_preset(obj, nozzle_value);
|
||||
if (!printer_preset)
|
||||
return;
|
||||
|
||||
auto opt_extruder_type = printer_preset->config.option<ConfigOptionEnumsGeneric>("extruder_type");
|
||||
if (opt_extruder_type) {
|
||||
|
||||
Reference in New Issue
Block a user