From 2d4ec6551d58d6597eea7332afb03746e1eb86f9 Mon Sep 17 00:00:00 2001 From: mpv Date: Thu, 5 Mar 2020 11:00:12 +0300 Subject: [PATCH] Fix for the porting to new OCCT 7.4.0 : unit test TestBooleanCommon_SolidsHistory --- src/FeaturesPlugin/FeaturesPlugin_Tools.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/FeaturesPlugin/FeaturesPlugin_Tools.cpp b/src/FeaturesPlugin/FeaturesPlugin_Tools.cpp index f77919fe1..ea354876b 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_Tools.cpp +++ b/src/FeaturesPlugin/FeaturesPlugin_Tools.cpp @@ -120,6 +120,13 @@ void FeaturesPlugin_Tools::loadDeletedShapes(ResultBodyPtr theResultBody, *anIter, GeomAPI_Shape::FACE, theResultShapesCompound); + // store information about deleted solids because of unittest TestBooleanCommon_SolidsHistory + // on OCCT 7.4.0 : common produces modified compsolid, so, move to the end for removed solids + // starts to produce whole compsolid + theResultBody->loadDeletedShapes(theMakeShape, + *anIter, + GeomAPI_Shape::SOLID, + theResultShapesCompound); } } -- 2.39.2