]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #2695: Line does not appear in sketcher while creating it
authorazv <azv@opencascade.com>
Wed, 17 Oct 2018 11:16:39 +0000 (14:16 +0300)
committerazv <azv@opencascade.com>
Wed, 17 Oct 2018 11:17:12 +0000 (14:17 +0300)
Show DoF any time a sketch has degenerated geometry.

src/SketchSolver/SketchSolver_Group.cpp

index f3b693f007ad1ca8c93570c28bce547237830f2b..d4b96d1c50691e49bdce16004ee617d8d9b57d9c 100644 (file)
@@ -290,6 +290,10 @@ bool SketchSolver_Group::resolveConstraints()
           myPrevResult = aResult;
         }
       }
+
+      // show degrees of freedom only if the degenerated geometry appears
+      if (aResult == PlaneGCSSolver_Solver::STATUS_DEGENERATED)
+        computeDoF();
     }
 
   }