FIX:confirm all break when repairing manifold edge

Jira: STUDIO-6308
Change-Id: I804ccc230b02193d890e36d3690e38e6300aef16
This commit is contained in:
zhou.xu 2024-03-21 17:01:11 +08:00 committed by Lane.Wei
parent 61c7b41cca
commit fa757b96d9

View File

@ -907,6 +907,7 @@ void GLGizmoAdvancedCut::perform_cut(const Selection& selection)
if (is_windows10()) {
bool is_showed_dialog = false;
bool user_fix_model = false;
bool all_break = false;
Plater::TakeSnapshot snapshot(plater, "RepairingModelObjectInCut");
for (size_t i = 0; i < new_objects.size(); i++) {
for (size_t j = 0; j < new_objects[i]->volumes.size(); j++) {
@ -942,9 +943,14 @@ void GLGizmoAdvancedCut::perform_cut(const Selection& selection)
if (!fix_and_update_progress(new_objects[i], j, model_name, progress_dlg, succes_models, failed_models)) {
BOOST_LOG_TRIVIAL(error) << __FUNCTION__ << "run fix_and_update_progress error";
plater->take_snapshot("RepairingModelObjectInCut");
all_break = true;
break;
};
};
}
if (all_break) {
break;
}
}
}
#endif