From: azv Date: Tue, 30 Oct 2018 16:45:47 +0000 (+0300) Subject: Send the "Fully constrained sketch" event when DoF is changed to 0 instead of each... X-Git-Tag: End2018~226 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b496d25f92b800ee709016850b5ac1cfe9f05ef8;p=modules%2Fshaper.git Send the "Fully constrained sketch" event when DoF is changed to 0 instead of each recalculation. --- diff --git a/src/SketchSolver/SketchSolver_Group.cpp b/src/SketchSolver/SketchSolver_Group.cpp index d4b96d1c5..fc3e6e78a 100644 --- a/src/SketchSolver/SketchSolver_Group.cpp +++ b/src/SketchSolver/SketchSolver_Group.cpp @@ -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);