]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #19068: Unable to quit Sketch because of conflicting constraint
authorArtem Zhidkov <Artem.Zhidkov@opencascade.com>
Fri, 15 May 2020 13:11:04 +0000 (16:11 +0300)
committerArtem Zhidkov <Artem.Zhidkov@opencascade.com>
Fri, 15 May 2020 13:11:04 +0000 (16:11 +0300)
Recompute sketch DoF on load of the document even if the sketch is failed.

src/SketchSolver/SketchSolver_Group.cpp

index 82bf9a1f7e3973da8716c346b12edfb64162a3b4..3ea7ade275d687c30a4c4f64ee4fbbcfe8a2313b 100644 (file)
@@ -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();
     }