From 9cc0e604ee4cbed8c99b916b659728f0f2dc3835 Mon Sep 17 00:00:00 2001 From: azv Date: Fri, 25 Dec 2015 14:34:02 +0300 Subject: [PATCH] Eliminate regression in "Multi" constraints (issue #1185) --- src/SketchSolver/SketchSolver_ConstraintMulti.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); -- 2.39.2