From 37ba024133ac52948b19d09cec0fe8eb5a297812 Mon Sep 17 00:00:00 2001 From: YuSanka Date: Mon, 5 Feb 2024 10:52:12 +0100 Subject: [PATCH] Fixed update of extruder ComboBox on switching of application color mode, when SLA-printer is selected. --- src/slic3r/GUI/Tab.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/Tab.cpp b/src/slic3r/GUI/Tab.cpp index 518e6e9b86..3dbab1cd1d 100644 --- a/src/slic3r/GUI/Tab.cpp +++ b/src/slic3r/GUI/Tab.cpp @@ -2112,7 +2112,8 @@ void TabFilament::update_extruder_combobox_visibility() void TabFilament::update_extruder_combobox() { - const size_t extruder_cnt = static_cast(m_preset_bundle->printers.get_edited_preset().config.option("nozzle_diameter"))->values.size(); + const size_t extruder_cnt = m_preset_bundle->printers.get_selected_preset().printer_technology() == ptSLA ? m_extruders_cb->GetCount() : + static_cast(m_preset_bundle->printers.get_edited_preset().config.option("nozzle_diameter"))->values.size(); if (extruder_cnt != m_extruders_cb->GetCount()) { m_extruders_cb->Clear();