From: azv Date: Thu, 17 Dec 2015 07:04:13 +0000 (+0300) Subject: SolveSpaceSolver: do not update IDs of sub-entities for the Multi constraints X-Git-Tag: V_2.1.0~165 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=165f888c148e7f6106f2b27e5d9d2ced2c69be69;p=modules%2Fshaper.git SolveSpaceSolver: do not update IDs of sub-entities for the Multi constraints --- 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) {