From: mpv Date: Thu, 5 Mar 2020 08:00:12 +0000 (+0300) Subject: Fix for the porting to new OCCT 7.4.0 : unit test TestBooleanCommon_SolidsHistory X-Git-Tag: V9_5_0a2~56 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2d4ec6551d58d6597eea7332afb03746e1eb86f9;p=modules%2Fshaper.git Fix for the porting to new OCCT 7.4.0 : unit test TestBooleanCommon_SolidsHistory --- 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); } }