From 165f888c148e7f6106f2b27e5d9d2ced2c69be69 Mon Sep 17 00:00:00 2001 From: azv Date: Thu, 17 Dec 2015 10:04:13 +0300 Subject: [PATCH] SolveSpaceSolver: do not update IDs of sub-entities for the Multi constraints --- src/SketchSolver/SolveSpaceSolver/SolveSpaceSolver_Storage.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/SketchSolver/SolveSpaceSolver/SolveSpaceSolver_Storage.cpp b/src/SketchSolver/SolveSpaceSolver/SolveSpaceSolver_Storage.cpp index 04d8fe663..080e32138 100644 --- a/src/SketchSolver/SolveSpaceSolver/SolveSpaceSolver_Storage.cpp +++ b/src/SketchSolver/SolveSpaceSolver/SolveSpaceSolver_Storage.cpp @@ -73,6 +73,9 @@ bool SolveSpaceSolver_Storage::update(ConstraintWrapperPtr& theConstraint) std::list::iterator anIt = anEntities.begin(); for (; anIt != anEntities.end(); ++anIt) { isUpdated = update(*anIt) || isUpdated; + // do not update constrained entities for Multi constraints + if (aSlvsConstr.type == SLVS_C_MULTI_ROTATION || aSlvsConstr.type != SLVS_C_MULTI_TRANSLATION) + continue; Slvs_hEntity anID = (Slvs_hEntity)(*anIt)->id(); if ((*anIt)->type() == ENTITY_POINT) { -- 2.39.2