From: azv Date: Wed, 17 Oct 2018 11:16:39 +0000 (+0300) Subject: Issue #2695: Line does not appear in sketcher while creating it X-Git-Tag: V9_2_0a2~16 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8fbe60deae2ba8c449d811df08ce2c810742e8a7;p=modules%2Fshaper.git Issue #2695: Line does not appear in sketcher while creating it Show DoF any time a sketch has degenerated geometry. --- diff --git a/src/SketchSolver/SketchSolver_Group.cpp b/src/SketchSolver/SketchSolver_Group.cpp index f3b693f00..d4b96d1c5 100644 --- a/src/SketchSolver/SketchSolver_Group.cpp +++ b/src/SketchSolver/SketchSolver_Group.cpp @@ -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(); } }