mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-15 17:45:57 +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);
|
on_progress(L("Fill holes"), 30);
|
||||||
if (canceled)
|
if (canceled)
|
||||||
throw RepairCanceledException();
|
throw RepairCanceledException();
|
||||||
if (tin.boundaries())
|
if (tin.boundaries()) {
|
||||||
{
|
|
||||||
on_progress(L("Patch small holes"), 40);
|
on_progress(L("Patch small holes"), 40);
|
||||||
if (canceled)
|
if (canceled)
|
||||||
throw RepairCanceledException();
|
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) {
|
if (tin.boundaries() || tin.T.numels() == 0) {
|
||||||
|
meshes_repaired.emplace_back(std::move(mv->mesh().its));
|
||||||
throw Slic3r::RuntimeError(L("Model repair failed"));
|
throw Slic3r::RuntimeError(L("Model repair failed"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user