From: azv Date: Thu, 24 Dec 2015 06:09:49 +0000 (+0300) Subject: Rebuild group after removing constraints (issue #1169) X-Git-Tag: V_2.1.0~88^2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9027a1f66fa498bff844f5348c1f8ce357c30f9e;p=modules%2Fshaper.git Rebuild group after removing constraints (issue #1169) --- diff --git a/src/SketchSolver/PlaneGCSSolver/PlaneGCSSolver_Storage.cpp b/src/SketchSolver/PlaneGCSSolver/PlaneGCSSolver_Storage.cpp index 5e530e951..5d40a3c2c 100644 --- a/src/SketchSolver/PlaneGCSSolver/PlaneGCSSolver_Storage.cpp +++ b/src/SketchSolver/PlaneGCSSolver/PlaneGCSSolver_Storage.cpp @@ -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; }