From: Artem Zhidkov Date: Fri, 15 May 2020 13:11:04 +0000 (+0300) Subject: Issue #19068: Unable to quit Sketch because of conflicting constraint X-Git-Tag: V9_5_0b1~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2b681751b6352592833293ad7dbbbf33773616b6;p=modules%2Fshaper.git Issue #19068: Unable to quit Sketch because of conflicting constraint Recompute sketch DoF on load of the document even if the sketch is failed. --- diff --git a/src/SketchSolver/SketchSolver_Group.cpp b/src/SketchSolver/SketchSolver_Group.cpp index 82bf9a1f7..3ea7ade27 100644 --- a/src/SketchSolver/SketchSolver_Group.cpp +++ b/src/SketchSolver/SketchSolver_Group.cpp @@ -335,8 +335,9 @@ bool SketchSolver_Group::resolveConstraints() } } - // show degrees of freedom only if the degenerated geometry appears - if (aResult == PlaneGCSSolver_Solver::STATUS_DEGENERATED) + // show degrees of freedom only if the degenerated geometry appears, + // or if DoF is not computed yet + if (aResult == PlaneGCSSolver_Solver::STATUS_DEGENERATED || myDOF < 0) computeDoF(); }