mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-15 19:35:55 +08:00
small refactoring
This commit is contained in:
parent
c4285a6ab3
commit
d4dc4bb8f6
@ -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"));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user