]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Rebuild group after removing constraints (issue #1169)
authorazv <azv@opencascade.com>
Thu, 24 Dec 2015 06:09:49 +0000 (09:09 +0300)
committerazv <azv@opencascade.com>
Thu, 24 Dec 2015 06:09:49 +0000 (09:09 +0300)
src/SketchSolver/PlaneGCSSolver/PlaneGCSSolver_Storage.cpp

index 5e530e951fdde766c6c21c13e787debc72a14921..5d40a3c2cfdbbb49a2968d95cffb1337c127161c 100644 (file)
@@ -209,11 +209,9 @@ bool PlaneGCSSolver_Storage::remove(ConstraintWrapperPtr theConstraint)
   if (!isFullyRemoved &&
      (!aConstraint->baseConstraint()->data() || !aConstraint->baseConstraint()->data()->isValid()))
     isFullyRemoved = true;
-  if (isFullyRemoved) {
-    setNeedToResolve(true);
-    myRemovedConstraints.insert(myRemovedConstraints.end(),
-        aConstraint->constraints().begin(), aConstraint->constraints().end());
-  }
+  setNeedToResolve(true);
+  myRemovedConstraints.insert(myRemovedConstraints.end(),
+      aConstraint->constraints().begin(), aConstraint->constraints().end());
   return isFullyRemoved;
 }