small refactoring

This commit is contained in:
PavelMikus 2022-05-24 13:17:58 +02:00
parent c4285a6ab3
commit d4dc4bb8f6

View File

@ -292,8 +292,7 @@ bool fix_model_by_meshfix(ModelObject &model_object, int volume_idx, wxProgressD
on_progress(L("Fill holes"), 30);
if (canceled)
throw RepairCanceledException();
if (tin.boundaries())
{
if (tin.boundaries()) {
on_progress(L("Patch small holes"), 40);
if (canceled)
throw RepairCanceledException();
@ -320,6 +319,7 @@ bool fix_model_by_meshfix(ModelObject &model_object, int volume_idx, wxProgressD
}
if (tin.boundaries() || tin.T.numels() == 0) {
meshes_repaired.emplace_back(std::move(mv->mesh().its));
throw Slic3r::RuntimeError(L("Model repair failed"));
}