ENH: refresh FilamentUnPrintableOnFirstLayer error state

jira: none

Change-Id: Ifec994cdba2c9590d4c1f8b59e6052593fd05bc2
(cherry picked from commit 04eeb40e1eba976e0921686bf6d66599a90e81cc)
This commit is contained in:
liz.li
2024-10-31 16:22:04 +08:00
committed by Noisyfox
parent 6c002687e0
commit 307bb051e6
4 changed files with 30 additions and 1 deletions

View File

@@ -2961,6 +2961,7 @@ void GLCanvas3D::reload_scene(bool refresh_immediately, bool force_full_scene_re
//BBS:exclude the assmble view
if (m_canvas_type != ECanvasType::CanvasAssembleView) {
_set_warning_notification_if_needed(EWarning::GCodeConflict);
_set_warning_notification(EWarning::FilamentUnPrintableOnFirstLayer, false);
// checks for geometry outside the print volume to render it accordingly
if (!m_volumes.empty()) {
ModelInstanceEPrintVolumeState state;
@@ -10110,6 +10111,14 @@ void GLCanvas3D::_set_warning_notification(EWarning warning, bool state)
notification_manager.close_slicing_serious_warning_notification(text);
break;
case SLICING_ERROR:
if (warning == EWarning::FilamentUnPrintableOnFirstLayer) {
if (state) {
notification_manager.bbl_show_bed_filament_incompatible_notification(text);
}
else {
notification_manager.bbl_close_bed_filament_incompatible_notification();
}
}
if (warning == EWarning::FilamentPrintableError) {
if (state)
notification_manager.push_slicing_customize_error_notification(NotificationType::BBLFilamentPrintableError, NotificationLevel::ErrorNotificationLevel, text);