From 9ed8848c9daa908d74149d8c77ed40f8d0e09f18 Mon Sep 17 00:00:00 2001 From: Valerii Bokhan <80919135+valerii-bokhan@users.noreply.github.com> Date: Wed, 21 Jan 2026 05:19:56 +0100 Subject: [PATCH] Fix: The correct build plate is being selected in the UI on project loading (#11985) # Description Fixes: #11966 Fixed the build plate type setting during project load. Implemented the code solution suggested by @kisslorand --- src/slic3r/GUI/Plater.cpp | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index 331d32cbff..7fdc0b0659 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -3145,9 +3145,20 @@ bool Sidebar::is_new_project_in_gcode3mf() void Sidebar::on_bed_type_change(BedType bed_type) { - // btDefault option is not included in global bed type setting - int sel_idx = (int)bed_type - 1; - if (p->combo_printer_bed != nullptr) p->combo_printer_bed->SetSelection(sel_idx); + // Orca: Map BedType to the current combo list (some printers filter types). + + if (p->combo_printer_bed == nullptr) + return; + + for (size_t i = 0; i < m_cur_combox_bed_types.size(); ++i) { + if (m_cur_combox_bed_types[i] == bed_type) { + p->combo_printer_bed->SetSelection(int(i)); + return; + } + } + + if (!m_cur_combox_bed_types.empty()) + p->combo_printer_bed->SetSelection(0); } std::map Sidebar::build_filament_ams_list(MachineObject* obj)