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
This commit is contained in:
Kris Austin authored and GitHub committed 2026-11-23 16:00:32 -06:00
1 parent bf86aeae79
commit 0c2f19d4e1
1 file changed
+6 -3
+6 -3
View File
@@ -9,6 +9,8 @@
#include "MsgDialog.hpp"
#include "libslic3r/PrintConfig.hpp"
#include "libslic3r/Config.hpp"
#include "libslic3r/PresetBundle.hpp"
#include <cstddef>
#include <vector>
#include <wx/panel.h>
#include <wx/string.h>
@@ -16,7 +18,6 @@
#include "slic3r/GUI/Widgets/CheckBox.hpp"
#include <wx/tglbtn.h>
#include <wx/event.h>
#include <numeric>
#include <wx/gdicmn.h>
#include <wx/dialog.h>
#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<int> 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();