From: azv Date: Mon, 30 May 2016 14:58:47 +0000 (+0300) Subject: Unable to Undo incorrect constraints (issue #1523) X-Git-Tag: V_2.3.1~30 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a146f5b48a9544f4f18e83a8ebb69ee8275852f7;p=modules%2Fshaper.git Unable to Undo incorrect constraints (issue #1523) --- diff --git a/src/SketchSolver/SketchSolver_Manager.cpp b/src/SketchSolver/SketchSolver_Manager.cpp index 4f16f7cd7..7f4c1e576 100644 --- a/src/SketchSolver/SketchSolver_Manager.cpp +++ b/src/SketchSolver/SketchSolver_Manager.cpp @@ -195,8 +195,9 @@ 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() || + (*aGroupIter)->isFailed()) aGroupsToResolve.push_back(*aGroupIter); } aGroupIter++;