From: azv Date: Fri, 25 Dec 2015 11:34:02 +0000 (+0300) Subject: Eliminate regression in "Multi" constraints (issue #1185) X-Git-Tag: V_2.1.0~44 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9cc0e604ee4cbed8c99b916b659728f0f2dc3835;p=modules%2Fshaper.git Eliminate regression in "Multi" constraints (issue #1185) --- diff --git a/src/SketchSolver/SketchSolver_ConstraintMulti.cpp b/src/SketchSolver/SketchSolver_ConstraintMulti.cpp index a445fe7ba..9db1b64e0 100644 --- a/src/SketchSolver/SketchSolver_ConstraintMulti.cpp +++ b/src/SketchSolver/SketchSolver_ConstraintMulti.cpp @@ -31,8 +31,8 @@ void SketchSolver_ConstraintMulti::getEntitiesAndCopies( std::list anEntities; // list of transformed entities std::list anObjectList = aRefList->list(); std::list::iterator anObjIt = anObjectList.begin(); - if (myNumberOfCopies + 1 != aRefList->size()) // execute for the feature is not called yet - myNumberOfCopies = aRefList->size() - 1; + if ((myNumberOfCopies + 1) * myNumberOfObjects != aRefList->size()) // execute for the feature is not called yet + myNumberOfCopies = aRefList->size() / myNumberOfObjects - 1; while (anObjIt != anObjectList.end()) { anEntities.clear();