]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/FeaturesPlugin/FeaturesPlugin_BooleanCut.cpp
Salome HOME
Merge remote-tracking branch 'remotes/origin/HigherLevelObjectsHistory'
[modules/shaper.git] / src / FeaturesPlugin / FeaturesPlugin_BooleanCut.cpp
index 784ef8f2b711287d51f949e6b1e19420df58a1b7..04b9020ba0858e837393e6d29b78b4487b60a4ad 100644 (file)
@@ -132,8 +132,10 @@ void FeaturesPlugin_BooleanCut::execute()
       std::shared_ptr<ModelAPI_ResultBody> aResultBody =
         document()->createBody(data(), aResultIndex);
 
+      ListOfShape anObjectList;
+      anObjectList.push_back(anObject);
       FeaturesPlugin_Tools::loadModifiedShapes(aResultBody,
-                                               anObject,
+                                               anObjectList,
                                                aTools,
                                                aMakeShapeList,
                                                aResShape);
@@ -213,8 +215,10 @@ void FeaturesPlugin_BooleanCut::execute()
       std::shared_ptr<ModelAPI_ResultBody> aResultBody =
         document()->createBody(data(), aResultIndex);
 
+      ListOfShape anObjectList;
+      anObjectList.push_back(aCompSolid);
       FeaturesPlugin_Tools::loadModifiedShapes(aResultBody,
-                                               aCompSolid,
+                                               anObjectList,
                                                aTools,
                                                aMakeShapeList,
                                                aResultShape);
@@ -295,8 +299,10 @@ void FeaturesPlugin_BooleanCut::execute()
       std::shared_ptr<ModelAPI_ResultBody> aResultBody =
         document()->createBody(data(), aResultIndex);
 
+      ListOfShape anObjectList;
+      anObjectList.push_back(aCompound);
       FeaturesPlugin_Tools::loadModifiedShapes(aResultBody,
-                                               aCompound,
+                                               anObjectList,
                                                aTools,
                                                aMakeShapeList,
                                                aResultShape);