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).
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);