From 7dd4b1e9e148bb79d775c011f4a006dcee0e5369 Mon Sep 17 00:00:00 2001 From: "zhou.xu" Date: Mon, 17 Feb 2025 14:35:06 +0800 Subject: [PATCH] FIX:If the current preset cannot find PrinterModel, it will be found from the inherited parent preset jira: STUDIO-10343 Change-Id: I4d3599ad4f7f4b21762cc0eee1174f6f05298e34 --- src/slic3r/GUI/Plater.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index ab4622f01..4fa7a2950 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -2413,6 +2413,10 @@ bool Sidebar::reset_bed_type_combox_choices() { auto bundle = wxGetApp().preset_bundle; const Preset * curr = &bundle->printers.get_selected_preset(); const VendorProfile::PrinterModel *pm = PresetUtils::system_printer_model(*curr); + if (!pm) { + auto curr_parent = bundle->printers.get_selected_preset_parent(); + pm = PresetUtils::system_printer_model(*curr_parent); + } if (m_last_combo_bedtype_count != 0 && pm) { auto cur_count = (int) BedType::btCount - 1 - pm->not_support_bed_types.size(); if (cur_count == m_last_combo_bedtype_count) {//no change