From 0c2f19d4e1e79fc14e391ec22bc1f90b730ef126 Mon Sep 17 00:00:00 2001 From: Kris Austin Date: Mon, 23 Nov 2026 16:00:32 -0600 Subject: [PATCH] Leave mixed filaments out of the Slice all grouping dialog (#17767) Slice all listed every filament slot in the custom nozzle grouping dialog, so a mixed filament showed up as its own spool. Slice plate already lists only physical filaments, because get_extruders() expands a mixed slot into its components. Skip the mixed slots for Slice all too. The mixed slot keeps its entry in the saved filament maps, but the dialog no longer sets it, the same as Slice plate. Fixes #17712 --- src/slic3r/GUI/FilamentMapDialog.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/slic3r/GUI/FilamentMapDialog.cpp b/src/slic3r/GUI/FilamentMapDialog.cpp index 00fdfe6d21..2f43f3ee5a 100644 --- a/src/slic3r/GUI/FilamentMapDialog.cpp +++ b/src/slic3r/GUI/FilamentMapDialog.cpp @@ -9,6 +9,8 @@ #include "MsgDialog.hpp" #include "libslic3r/PrintConfig.hpp" #include "libslic3r/Config.hpp" +#include "libslic3r/PresetBundle.hpp" +#include #include #include #include @@ -16,7 +18,6 @@ #include "slic3r/GUI/Widgets/CheckBox.hpp" #include #include -#include #include #include #include "slic3r/GUI/FilamentMapPanel.hpp" @@ -154,8 +155,10 @@ bool try_pop_up_before_slice(bool is_slice_all, Plater* plater_ref, PartPlate* p std::vector filament_lists; if (is_slice_all) { - filament_lists.resize(filament_colors.size()); - std::iota(filament_lists.begin(), filament_lists.end(), 1); + // A mixed slot prints with the nozzles of its component filaments. + for (size_t i = 0; i < filament_colors.size(); ++i) + if (!preset->is_mixed_filament(i)) + filament_lists.push_back(int(i) + 1); } else { filament_lists = partplate_ref->get_extruders();