From 1b955a8c5621b94eddd2f8ab740404bc6d4a3887 Mon Sep 17 00:00:00 2001 From: nds Date: Tue, 9 Feb 2016 12:23:26 +0300 Subject: [PATCH] 2.17. Improved management of overconstraint situation: Undo correction: SOLVER_ERROR becomes empty by Undo, the signal about solver failed/repaired is not emitted The modification is approved by AZV. Scenario: create line, lenght, lenght, undo. BUG: the first length is still visualized in conflicted color. --- src/SketchSolver/SketchSolver_Manager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SketchSolver/SketchSolver_Manager.cpp b/src/SketchSolver/SketchSolver_Manager.cpp index 39662623d..eb30c034f 100644 --- a/src/SketchSolver/SketchSolver_Manager.cpp +++ b/src/SketchSolver/SketchSolver_Manager.cpp @@ -163,8 +163,8 @@ void SketchSolver_Manager::processEvent( } if (!(*aGroupIter)->isConsistent()) { // some constraints were removed, try to split the group (*aGroupIter)->splitGroup(aSeparatedGroups); - if (!(*aGroupIter)->getWorkplane()->string( - SketchPlugin_Sketch::SOLVER_ERROR())->value().empty()) + //if (!(*aGroupIter)->getWorkplane()->string( + // SketchPlugin_Sketch::SOLVER_ERROR())->value().empty()) aGroupsToResolve.push_back(*aGroupIter); } aGroupIter++; -- 2.39.2