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:
Clifford authored and SoftFever committed 2026-11-01 09:53:53 +08:00
1 parent 9c57223a6f
commit cb63d7933f
9 files changed
+136 -9

No files matched your search

+4 -1
View File
@@ -199,7 +199,10 @@ static std::optional<BedExclusionCollision> colliding_bed_exclusion(
std::optional<BedExclusionCollision>(BedExclusionCollision{ *first_collision, true }) : std::nullopt;
}
for (const unsigned int filament_id : print_object.printing_extruders()) {
// A mixed filament prints with its component filaments.
const std::vector<unsigned int> filament_ids = expand_mixed_filaments(print_object.printing_extruders(),
print.config().filament_is_mixed.values, print.config().filament_mixed_components.values);
for (const unsigned int filament_id : filament_ids) {
const int resolved_extruder = bed_exclusion_extruder_for_filament(
filament_id, print.get_filament_maps(), print.get_filament_map_mode(), print.is_BBL_printer(),
true, regions_by_extruder.size());