]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Remove error status when the group with conflicting constraint is deleted (issue...
authorazv <azv@opencascade.com>
Mon, 30 May 2016 09:36:00 +0000 (12:36 +0300)
committerazv <azv@opencascade.com>
Mon, 30 May 2016 09:36:23 +0000 (12:36 +0300)
src/SketchSolver/SketchSolver_Group.cpp

index 639af961c4e43f4e5ad0dbb1a06d377ae2e2a8c1..ed6b912395e013736689a5437b6fce97c01773a8 100644 (file)
@@ -328,7 +328,7 @@ bool SketchSolver_Group::resolveConstraints()
 {
   bool aResolved = false;
   bool isGroupEmpty = isEmpty() && myStorage->isEmpty();
-  if (myStorage->isNeedToResolve() && !isGroupEmpty) {
+  if (myStorage->isNeedToResolve() && (!isGroupEmpty || !myConflictingConstraints.empty())) {
     if (!mySketchSolver)
       mySketchSolver = SketchSolver_Manager::instance()->builder()->createSolver();