From fa757b96d9b580e216c0e8597c7b9aacc38ee8b1 Mon Sep 17 00:00:00 2001 From: "zhou.xu" Date: Thu, 21 Mar 2024 17:01:11 +0800 Subject: [PATCH] FIX:confirm all break when repairing manifold edge Jira: STUDIO-6308 Change-Id: I804ccc230b02193d890e36d3690e38e6300aef16 --- src/slic3r/GUI/Gizmos/GLGizmoAdvancedCut.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/slic3r/GUI/Gizmos/GLGizmoAdvancedCut.cpp b/src/slic3r/GUI/Gizmos/GLGizmoAdvancedCut.cpp index dcb2ada77..f5ee8d918 100644 --- a/src/slic3r/GUI/Gizmos/GLGizmoAdvancedCut.cpp +++ b/src/slic3r/GUI/Gizmos/GLGizmoAdvancedCut.cpp @@ -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