diff --git a/src/libslic3r/PrintObject.cpp b/src/libslic3r/PrintObject.cpp index 887caa8bf..474e02f58 100644 --- a/src/libslic3r/PrintObject.cpp +++ b/src/libslic3r/PrintObject.cpp @@ -431,16 +431,16 @@ void PrintObject::generate_support_spots() auto alert_fn = [&](PrintStateBase::WarningLevel level, SupportSpotsGenerator::SupportPointCause cause) { switch (cause) { case SupportSpotsGenerator::SupportPointCause::LongBridge: - this->active_step_add_warning(level, L("There are bridges longer than recommended length. Consider adding supports.") + + this->active_step_add_warning(level, L("There are bridges longer than recommended length. Consider adding supports. ") + (L("Object name")) + ": " + this->model_object()->name); break; case SupportSpotsGenerator::SupportPointCause::FloatingBridgeAnchor: - this->active_step_add_warning(level, L("Unsupported bridges will collapse. Supports are needed.") + (L("Object name")) + + this->active_step_add_warning(level, L("Unsupported bridges will collapse. Supports are needed. ") + (L("Object name")) + ": " + this->model_object()->name); break; case SupportSpotsGenerator::SupportPointCause::FloatingExtrusion: if (level == PrintStateBase::WarningLevel::CRITICAL) { - this->active_step_add_warning(level, L("Clusters of unsupported extrusions found. Supports are needed.") + + this->active_step_add_warning(level, L("Clusters of unsupported extrusions found. Supports are needed. ") + (L("Object name")) + ": " + this->model_object()->name); } else { this->active_step_add_warning(level, L("Some unspported extrusions found. Consider adding supports. ") + @@ -448,15 +448,15 @@ void PrintObject::generate_support_spots() } break; case SupportSpotsGenerator::SupportPointCause::SeparationFromBed: - this->active_step_add_warning(level, L("Object part may break from the bed. Consider adding brim and/or supports.") + + this->active_step_add_warning(level, L("Object part may break from the bed. Consider adding brim and/or supports. ") + (L("Object name")) + ": " + this->model_object()->name); break; case SupportSpotsGenerator::SupportPointCause::UnstableFloatingPart: - this->active_step_add_warning(level, L("Floating object parts detected. Supports are needed.") + (L("Object name")) + + this->active_step_add_warning(level, L("Floating object parts detected. Supports are needed. ") + (L("Object name")) + ": " + this->model_object()->name); break; case SupportSpotsGenerator::SupportPointCause::WeakObjectPart: - this->active_step_add_warning(level, L("Thin parts of the object may break. Consider adding supports.") + + this->active_step_add_warning(level, L("Thin parts of the object may break. Consider adding supports. ") + (L("Object name")) + ": " + this->model_object()->name); break; }