mirror of
https://git.mirrors.martin98.com/https://github.com/bambulab/BambuStudio.git
synced 2025-09-21 01:43:13 +08:00
FIX:confirm all break when repairing manifold edge
Jira: STUDIO-6308 Change-Id: I804ccc230b02193d890e36d3690e38e6300aef16
This commit is contained in:
parent
61c7b41cca
commit
fa757b96d9
@ -907,6 +907,7 @@ void GLGizmoAdvancedCut::perform_cut(const Selection& selection)
|
|||||||
if (is_windows10()) {
|
if (is_windows10()) {
|
||||||
bool is_showed_dialog = false;
|
bool is_showed_dialog = false;
|
||||||
bool user_fix_model = false;
|
bool user_fix_model = false;
|
||||||
|
bool all_break = false;
|
||||||
Plater::TakeSnapshot snapshot(plater, "RepairingModelObjectInCut");
|
Plater::TakeSnapshot snapshot(plater, "RepairingModelObjectInCut");
|
||||||
for (size_t i = 0; i < new_objects.size(); i++) {
|
for (size_t i = 0; i < new_objects.size(); i++) {
|
||||||
for (size_t j = 0; j < new_objects[i]->volumes.size(); j++) {
|
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)) {
|
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";
|
BOOST_LOG_TRIVIAL(error) << __FUNCTION__ << "run fix_and_update_progress error";
|
||||||
plater->take_snapshot("RepairingModelObjectInCut");
|
plater->take_snapshot("RepairingModelObjectInCut");
|
||||||
|
all_break = true;
|
||||||
|
break;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
if (all_break) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user