From: azv Date: Thu, 24 Sep 2015 07:19:39 +0000 (+0300) Subject: Update merging SketchSolver groups (issue #1013) X-Git-Tag: 1.4.0_demo1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d478c15404455f691fd822b03d8941eca9a17575;p=modules%2Fshaper.git Update merging SketchSolver groups (issue #1013) --- diff --git a/src/SketchSolver/SketchSolver_Group.cpp b/src/SketchSolver/SketchSolver_Group.cpp index aeac2ebea..52b3d34b7 100644 --- a/src/SketchSolver/SketchSolver_Group.cpp +++ b/src/SketchSolver/SketchSolver_Group.cpp @@ -674,9 +674,9 @@ void SketchSolver_Group::splitGroup(std::vector& theCuts) std::vector::iterator aUnuseIt = anUnusedConstraints.begin(); while (aUnuseIt != anUnusedConstraints.end()) { if (aNewFeatStorage->isInteract(*aUnuseIt)) { - size_t aShift = aUnuseIt - anUnusedConstraints.begin(); + aNewFeatStorage->changeConstraint(*aUnuseIt); anUnusedConstraints.erase(aUnuseIt); - aUnuseIt = anUnusedConstraints.begin() + aShift; + aUnuseIt = anUnusedConstraints.begin(); continue; } aUnuseIt++; @@ -700,6 +700,9 @@ void SketchSolver_Group::splitGroup(std::vector& theCuts) theCuts.push_back(aGroup); } } + + // Update feature storage + myFeatureStorage = aNewFeatStorage; } // ============================================================================