From b0785705e54718464151838db31d7f2a0123a7a0 Mon Sep 17 00:00:00 2001 From: azv Date: Thu, 23 Jun 2016 08:08:20 +0300 Subject: [PATCH] PLaneGCSSolver: Remove the Equal constraints from the list of redundant --- src/SketchSolver/PlaneGCSSolver/PlaneGCSSolver_Solver.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/SketchSolver/PlaneGCSSolver/PlaneGCSSolver_Solver.cpp b/src/SketchSolver/PlaneGCSSolver/PlaneGCSSolver_Solver.cpp index ff8d15150..aa24b78f2 100644 --- a/src/SketchSolver/PlaneGCSSolver/PlaneGCSSolver_Solver.cpp +++ b/src/SketchSolver/PlaneGCSSolver/PlaneGCSSolver_Solver.cpp @@ -87,6 +87,8 @@ SketchSolver_SolveStatus PlaneGCSSolver_Solver::solve() if (!aRedundantID.empty()) { std::set::const_iterator aCIt = myConstraints.begin(); for (; aCIt != myConstraints.end(); ++aCIt) { + if ((*aCIt)->getTypeId() != GCS::Equal) + continue; GCS::VEC_I::iterator aRIt = aRedundantID.begin(); for (; aRIt != aRedundantID.end(); ++aRIt) if ((*aCIt)->getTag() == *aRIt) { -- 2.39.2