Remove duplicit warning about not enabled support enforcers

This commit is contained in:
David Kocik 2021-09-30 15:45:30 +02:00
parent 117c4a432e
commit 5a45c94ccd

View File

@ -397,22 +397,6 @@ void PrintObject::generate_support_material()
if (layer->empty()) if (layer->empty())
throw Slic3r::SlicingError("Levitating objects cannot be printed without supports."); throw Slic3r::SlicingError("Levitating objects cannot be printed without supports.");
#endif #endif
// Do we have custom support data that would not be used?
// Notify the user in that case.
if (! this->has_support()) {
for (const ModelVolume* mv : this->model_object()->volumes) {
bool has_enforcers = mv->is_support_enforcer() ||
(mv->is_model_part() && mv->supported_facets.has_facets(*mv, EnforcerBlockerType::ENFORCER));
if (has_enforcers) {
this->active_step_add_warning(PrintStateBase::WarningLevel::CRITICAL,
L("An object has custom support enforcers which will not be used "
"because supports are off. Consider turning them on.") + "\n" +
(L("Object name")) + ": " + this->model_object()->name);
break;
}
}
}
} }
this->set_done(posSupportMaterial); this->set_done(posSupportMaterial);
} }