From c7bc1b27a5adedac3e50372a33628350ff9e50bc Mon Sep 17 00:00:00 2001 From: Clifford Date: Tue, 27 Oct 2026 09:17:33 -0400 Subject: [PATCH] Fix extruder printable area placement checks for non-BBL multi-nozzle printers (#14140) Non-Bambu printers do not regroup filaments, but the placement check before slicing treated them as if they did. In auto map mode it only flagged a filament that fits on no extruder, so an object outside its own extruder's printable area got no warning until slicing failed. On these printers the check now uses the filament map from get_effective_exclusion_filament_maps(), the same map the exclusion-volume check and arrange use. A conflict on a third or later extruder now shows a generic message. Before, it blocked slicing with no message. The "Click here to regroup" link is hidden on non-Bambu printers. Fixes #14070 --- src/slic3r/GUI/3DScene.cpp | 9 ++++++++- src/slic3r/GUI/GLCanvas3D.cpp | 12 +++++++++++- src/slic3r/GUI/NotificationManager.cpp | 9 +++++++-- 3 files changed, 26 insertions(+), 4 deletions(-) diff --git a/src/slic3r/GUI/3DScene.cpp b/src/slic3r/GUI/3DScene.cpp index b09bc5b2b4..a976114592 100644 --- a/src/slic3r/GUI/3DScene.cpp +++ b/src/slic3r/GUI/3DScene.cpp @@ -1665,6 +1665,10 @@ bool GLVolumeCollection::check_outside_state(const BuildVolume &build_volume, Mo if (object_results && (extruder_count > 1)) { object_results->mode = curr_plate->get_real_filament_map_mode(plate_project_config); + // Only Bambu printers regroup filaments; check the others against the map they print with. + const bool supports_filament_grouping = GUI::wxGetApp().preset_bundle->is_bbl_vendor(); + if (!supports_filament_grouping && object_results->mode < FilamentMapMode::fmmManual) + object_results->mode = FilamentMapMode::fmmManual; if (object_results->mode < FilamentMapMode::fmmManual) { std::vector conflict_filament_vector; @@ -1726,7 +1730,10 @@ bool GLVolumeCollection::check_outside_state(const BuildVolume &build_volume, Mo else { std::set conflict_filaments_set; - std::vector filament_maps = curr_plate->get_real_filament_maps(plate_project_config); + std::vector filament_maps = supports_filament_grouping ? + curr_plate->get_real_filament_maps(plate_project_config) : + curr_plate->get_effective_exclusion_filament_maps(plate_project_config, GUI::wxGetApp().preset_bundle->filament_presets.size(), + size_t(extruder_count)); for (auto& object_map: objects_unprintable_filaments) { ModelObject *model_object = object_map.first; diff --git a/src/slic3r/GUI/GLCanvas3D.cpp b/src/slic3r/GUI/GLCanvas3D.cpp index e815c5bb92..f9fc51e2a2 100644 --- a/src/slic3r/GUI/GLCanvas3D.cpp +++ b/src/slic3r/GUI/GLCanvas3D.cpp @@ -1965,6 +1965,14 @@ static std::pair construct_extruder_unprintable_error(ObjectFilament output_text = tips[idx]; } + // Conflicts on extruders beyond the left/right pair (3+ tool machines) have + // no bucket above; without a message the slice would be blocked silently. + if (left_unprintable_objects.empty() && right_unprintable_objects.empty()) { + left_extruder_unprintable_text = _u8L("The position or size of some models exceeds the assigned extruder's printable range. " + "Please check and adjust the part's position or size to fit the printable range."); + return { true, false }; + } + return { !left_unprintable_objects.empty(),!right_unprintable_objects.empty() }; } @@ -12601,7 +12609,9 @@ void GLCanvas3D::_set_warning_notification(EWarning warning, bool state) try_pop_up_before_slice(false, plater, partplate, true); // ignore the return value return false; }; - notification_manager.push_slicing_customize_error_notification(NotificationType::BBLFilamentPrintableError, NotificationLevel::ErrorNotificationLevel, text, _u8L("Click here to regroup"), callback); + // Only Bambu printers can regroup; without the link the callback is unreachable. + const std::string regroup = wxGetApp().preset_bundle->is_bbl_vendor() ? _u8L("Click here to regroup") : ""; + notification_manager.push_slicing_customize_error_notification(NotificationType::BBLFilamentPrintableError, NotificationLevel::ErrorNotificationLevel, text, regroup, callback); } else notification_manager.close_slicing_customize_error_notification(NotificationType::BBLFilamentPrintableError, NotificationLevel::ErrorNotificationLevel); diff --git a/src/slic3r/GUI/NotificationManager.cpp b/src/slic3r/GUI/NotificationManager.cpp index 69df377bd6..91efc430df 100644 --- a/src/slic3r/GUI/NotificationManager.cpp +++ b/src/slic3r/GUI/NotificationManager.cpp @@ -12,6 +12,7 @@ #include "Tab.hpp" #include "libslic3r/Config.hpp" #include "libslic3r/PrintBase.hpp" +#include "libslic3r/PresetBundle.hpp" #include "format.hpp" #include @@ -3620,7 +3621,9 @@ void NotificationManager::bbl_show_filament_map_invalid_notification_before_slic return false; }; - push_notification_data({ type,NotificationLevel::ErrorNotificationLevel,0,_u8L("Error:") + "\n" + text,_u8L("Click here to regroup"),callback }, 0); + // Only Bambu printers can regroup; without the link the callback is unreachable. + const std::string regroup = wxGetApp().preset_bundle->is_bbl_vendor() ? _u8L("Click here to regroup") : ""; + push_notification_data({ type,NotificationLevel::ErrorNotificationLevel,0,_u8L("Error:") + "\n" + text,regroup,callback }, 0); } void NotificationManager::bbl_close_filament_map_invalid_notification_before_slice(const NotificationType type) @@ -3643,7 +3646,9 @@ void NotificationManager::bbl_show_filament_map_invalid_notification_after_slice return false; }; - push_notification_data({ type,NotificationLevel::ErrorNotificationLevel,0,_u8L("Error:") + "\n" + text,_u8L("Click here to regroup"),callback }, 0); + // Only Bambu printers can regroup; without the link the callback is unreachable. + const std::string regroup = wxGetApp().preset_bundle->is_bbl_vendor() ? _u8L("Click here to regroup") : ""; + push_notification_data({ type,NotificationLevel::ErrorNotificationLevel,0,_u8L("Error:") + "\n" + text,regroup,callback }, 0); } void NotificationManager::bbl_close_filament_map_invalid_notification_after_slice(const NotificationType type)