From e80ef2f263e1885c2a6e03be6ce3d7cdf20c1486 Mon Sep 17 00:00:00 2001 From: azv Date: Wed, 5 Apr 2017 08:00:01 +0300 Subject: [PATCH] Issue #2095: Fillet with mirror produces a problem in solver Increased stack depth. --- src/SketchSolver/SketchSolver_Group.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/SketchSolver/SketchSolver_Group.cpp b/src/SketchSolver/SketchSolver_Group.cpp index 05840ba95..4782f9705 100644 --- a/src/SketchSolver/SketchSolver_Group.cpp +++ b/src/SketchSolver/SketchSolver_Group.cpp @@ -144,8 +144,9 @@ bool SketchSolver_Group::moveFeature(FeaturePtr theFeature) // ============================================================================ bool SketchSolver_Group::resolveConstraints() { + static const int MAX_STACK_SIZE = 3; // check the "Multi" constraints do not drop sketch into infinite loop - if (myMultiConstraintUpdateStack > 1) { + if (myMultiConstraintUpdateStack > MAX_STACK_SIZE) { myPrevResult = PlaneGCSSolver_Solver::STATUS_FAILED; // generate error message due to loop update of the sketch getWorkplane()->string(SketchPlugin_Sketch::SOLVER_ERROR()) -- 2.39.2