]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #2522: DoF is 0 but the sketch is not displayed in green
authorazv <azv@opencascade.com>
Wed, 29 Aug 2018 10:04:07 +0000 (13:04 +0300)
committerazv <azv@opencascade.com>
Wed, 29 Aug 2018 10:05:06 +0000 (13:05 +0300)
Send message of fully constrained sketch each time it is recomputed.

src/SketchSolver/SketchSolver_Group.cpp

index 93bbfa69d406369bea25307cbe7a7ea0eb3d498e..4c005e9d318e52134c9fc4afe3acd0564d699821 100644 (file)
@@ -313,7 +313,7 @@ void SketchSolver_Group::computeDoF()
 
   if (aDoF > 0 && myDOF == 0)
     sendMessage(EVENT_SKETCH_UNDER_CONSTRAINED, mySketch, aDoF);
-  else if (aDoF == 0 && myDOF > 0)
+  else if (aDoF == 0/* && myDOF > 0*/)
     sendMessage(EVENT_SKETCH_FULLY_CONSTRAINED, mySketch, aDoF);
   else if (aDoF < 0)
     sendMessage(EVENT_SKETCH_OVER_CONSTRAINED, mySketch, aDoF);