From 74ee1b607be66ed14d8f78249cd283867b7e3c15 Mon Sep 17 00:00:00 2001 From: azv Date: Sat, 27 Apr 2019 01:02:28 +0300 Subject: [PATCH] Fix shape dependencies leading to regressions in test cases. --- src/FeaturesPlugin/FeaturesPlugin_Boolean.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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()); -- 2.39.2