From 58bc69f62a8016788e8975bfa606e5439485b8a2 Mon Sep 17 00:00:00 2001 From: azv Date: Wed, 3 Oct 2018 10:08:12 +0300 Subject: [PATCH] Issue #2672: sketch coloring is wrong 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SketchSolver/SketchSolver_Group.cpp b/src/SketchSolver/SketchSolver_Group.cpp index d8766bd0e..f3b693f00 100644 --- a/src/SketchSolver/SketchSolver_Group.cpp +++ b/src/SketchSolver/SketchSolver_Group.cpp @@ -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); -- 2.39.2