From: azv Date: Fri, 26 Apr 2019 22:02:28 +0000 (+0300) Subject: Fix shape dependencies leading to regressions in test cases. X-Git-Tag: VEDF2019Lot4~101^2~90 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=74ee1b607be66ed14d8f78249cd283867b7e3c15;p=modules%2Fshaper.git Fix shape dependencies leading to regressions in test cases. --- diff --git a/src/FeaturesPlugin/FeaturesPlugin_Boolean.cpp b/src/FeaturesPlugin/FeaturesPlugin_Boolean.cpp index d466d1a13..6602ebccb 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_Boolean.cpp +++ b/src/FeaturesPlugin/FeaturesPlugin_Boolean.cpp @@ -211,6 +211,9 @@ bool FeaturesPlugin_Boolean::processObject( std::shared_ptr aResultBody = document()->createBody(data(), theResultIndex); + // tools should be added to the list to fulfill the correct history of modification + aListWithObject.insert(aListWithObject.end(), theTools.begin(), theTools.end()); + ListOfShape aUsedTools = theTools; aUsedTools.insert(aUsedTools.end(), thePlanes.begin(), thePlanes.end()); @@ -307,6 +310,8 @@ bool FeaturesPlugin_Boolean::processCompsolid( ListOfShape aCompSolidList; aCompSolidList.push_back(theCompsolid); + // tools should be added to the list to fulfill the correct history of modification + aCompSolidList.insert(aCompSolidList.end(), theTools.begin(), theTools.end()); ListOfShape aUsedTools = theTools; aUsedTools.insert(aUsedTools.end(), thePlanes.begin(), thePlanes.end());