From adda1afc4c160935e575ba72dcc9b7b081d40631 Mon Sep 17 00:00:00 2001 From: blobfish Date: Sat, 3 May 2014 11:55:23 -0400 Subject: [PATCH] Part: Check Geometry: Config option for new, additional BOP check --- src/Mod/Part/Gui/TaskCheckGeometry.cpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/Mod/Part/Gui/TaskCheckGeometry.cpp b/src/Mod/Part/Gui/TaskCheckGeometry.cpp index 205fb8b4b..e3ad95116 100644 --- a/src/Mod/Part/Gui/TaskCheckGeometry.cpp +++ b/src/Mod/Part/Gui/TaskCheckGeometry.cpp @@ -450,8 +450,17 @@ void TaskCheckGeometryResults::goCheck() else { //BOPAlgo_ArgumentAnalyzer can be really slow! - //so only run it when the shape seems valid to BRepCheck_Analyzer - invalidShapes += goBOPSingleCheck(shape, theRoot, baseName); + //so only run it when the shape seems valid to BRepCheck_Analyzer And + //when the option is set. + + ParameterGrp::handle group = App::GetApplication().GetUserParameter(). + GetGroup("BaseApp")->GetGroup("Preferences")->GetGroup("Mod")->GetGroup("Part")->GetGroup("CheckGeometry"); + bool runSignal = group->GetBool("RunBOPCheck", false); + //for now, user has edit the config file to turn it on. + //following line ensures that the config file has the setting. + group->SetBool("RunBOPCheck", runSignal); + if (runSignal) + invalidShapes += goBOPSingleCheck(shape, theRoot, baseName); } } model->setResults(theRoot);