FIX: fix build error

(cherry picked from commit 885e96d8db30a688c3fc65f828c2c4b78499b4c3)
This commit is contained in:
zhimin.zeng
2024-12-11 20:41:55 +08:00
committed by Noisyfox
parent 135b39526e
commit 6e7b2e9614
2 changed files with 11 additions and 1 deletions

View File

@@ -872,7 +872,6 @@ public:
//bool is_support_p1s_plus{false};
bool is_support_nozzle_blob_detection{false};
bool is_support_air_print_detection{false};
bool is_support_filament_setting_inprinting{false};
bool is_support_agora{false};
bool is_support_upgrade_kit{false};
bool is_support_command_homing { false };// fun[32]

View File

@@ -9722,6 +9722,17 @@ void GLCanvas3D::_set_warning_notification(EWarning warning, bool state)
case EWarning::ObjectLimited:
text = object_limited_text;
break;
case EWarning::FilamentUnPrintableOnFirstLayer: {
std::string warning;
const std::vector<int> &conflict_filament = m_gcode_viewer.filament_printable_reuslt.conflict_filament;
auto iter = conflict_filament.begin();
for (int filament : conflict_filament) {
warning += std::to_string(filament + 1);
warning += " ";
}
text = (boost::format(_u8L("filaments %s cannot be printed directly on the surface of this plate.")) % warning).str();
error = ErrorType::SLICING_ERROR;
break;
}
//BBS: this may happened when exit the app, plater is null
if (!wxGetApp().plater())