From 80e61ee541a1d5c3ec1346cd5fac7ecbe0fe79f1 Mon Sep 17 00:00:00 2001 From: azv Date: Tue, 30 Oct 2018 19:45:47 +0300 Subject: [PATCH] Send the "Fully constrained sketch" event when DoF is changed to 0 instead of each recalculation. --- 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 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); -- 2.39.2