]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Send the "Fully constrained sketch" event when DoF is changed to 0 instead of each...
authorazv <azv@opencascade.com>
Tue, 30 Oct 2018 16:45:47 +0000 (19:45 +0300)
committermpv <mpv@opencascade.com>
Mon, 19 Nov 2018 08:45:52 +0000 (11:45 +0300)
src/SketchSolver/SketchSolver_Group.cpp

index d4b96d1c50691e49bdce16004ee617d8d9b57d9c..fc3e6e78ae6bccb36cb2a323825e17006b64cf63 100644 (file)
@@ -333,7 +333,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);