]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #2672: sketch coloring is wrong
authorazv <azv@opencascade.com>
Wed, 3 Oct 2018 07:08:12 +0000 (10:08 +0300)
committerazv <azv@opencascade.com>
Wed, 3 Oct 2018 07:08:12 +0000 (10:08 +0300)
Send message when the over-constrained sketch is loaded in document and the over-constraint situation is just resolved (SketchPlugin_Group::myDOF is changed from -1 to a positive value).

src/SketchSolver/SketchSolver_Group.cpp

index d8766bd0e9f3f354c251a337e58034daa6890b6f..f3b693f007ad1ca8c93570c28bce547237830f2b 100644 (file)
@@ -327,7 +327,7 @@ void SketchSolver_Group::computeDoF()
     aDoFMsg << "DoF (degrees of freedom) = " << aDoF;
   mySketch->string(SketchPlugin_Sketch::SOLVER_DOF())->setValue(aDoFMsg.str());
 
-  if (aDoF > 0 && myDOF == 0)
+  if (aDoF > 0 && myDOF <= 0)
     sendMessage(EVENT_SKETCH_UNDER_CONSTRAINED, mySketch, aDoF);
   else if (aDoF == 0/* && myDOF > 0*/)
     sendMessage(EVENT_SKETCH_FULLY_CONSTRAINED, mySketch, aDoF);