]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Unable to Undo incorrect constraints (issue #1523)
authorazv <azv@opencascade.com>
Mon, 30 May 2016 14:58:47 +0000 (17:58 +0300)
committerazv <azv@opencascade.com>
Mon, 30 May 2016 14:58:47 +0000 (17:58 +0300)
src/SketchSolver/SketchSolver_Manager.cpp

index 4f16f7cd7ebcb594274c1c7c44a5d4042c788071..7f4c1e5761e35a8ee59f7997d1430ac8fe25dbb0 100644 (file)
@@ -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++;