From 9027a1f66fa498bff844f5348c1f8ce357c30f9e Mon Sep 17 00:00:00 2001 From: azv Date: Thu, 24 Dec 2015 09:09:49 +0300 Subject: [PATCH] Rebuild group after removing constraints (issue #1169) --- .../PlaneGCSSolver/PlaneGCSSolver_Storage.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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; } -- 2.39.2