mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-11-29 16:36:01 -05:00
Check mixed filaments against their component filaments' extruders (#16947)
A mixed filament prints with its component filaments, each on its own extruder, but the placement checks resolved it as a filament of its own. On non-Bambu multi-tool printers this could block an object because an extruder that prints none of the components can't reach it, or allow it when a component's extruder can't.
Mixed filaments are now expanded to their components before extruder resolution in the printable area check (GUI and CLI), arrange and the exclusion volume preview, Print::validate(), and brim and support exclusion clipping.
Fixes #16945
(cherry picked from commit 59aa101ea6)
This commit is contained in:
1 parent
9c57223a6f
commit
cb63d7933f
9 files changed
+136
-9
No files matched your search
+2
-1
@@ -6650,7 +6650,8 @@ int CLI::run(int argc, char **argv)
|
||||
// Only check for single-color object
|
||||
for (size_t j = 0; j < inside_extruders.size(); ++j) {
|
||||
if (!inside_extruders[j]) {
|
||||
std::vector<int> filaments = vol->get_extruders();
|
||||
// A mixed filament prints with its component filaments.
|
||||
const std::vector<int> filaments = expand_mixed_filament_ids(vol->get_extruders(), m_print_config);
|
||||
unprintable_filament_ids[j].insert(filaments.begin(), filaments.end());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user