Salome HOME
Merge remote-tracking branch 'remotes/origin/HigherLevelObjectsHistory'
[modules/shaper.git] / src / FeaturesPlugin / FeaturesPlugin_BooleanSmash.cpp
index 46d7b202135bac4e0faad5a5d5dad2a0edeca944..9c8bb1e578bffda2db38ab2ccc6990304361f277 100644 (file)
@@ -212,12 +212,10 @@ void FeaturesPlugin_BooleanSmash::execute()
     aMakeShapeList->appendAlgo(aFillerAlgo);
   }
 
-  std::shared_ptr<GeomAPI_Shape> aFrontShape = anOriginalShapes.front();
-  anOriginalShapes.pop_front();
   std::shared_ptr<ModelAPI_ResultBody> aResultBody = document()->createBody(data(), aResultIndex);
 
   FeaturesPlugin_Tools::loadModifiedShapes(aResultBody,
-                                           aFrontShape,
+                                           anOriginalShapes,
                                            anOriginalShapes,
                                            aMakeShapeList,
                                            aShape);
@@ -226,7 +224,7 @@ void FeaturesPlugin_BooleanSmash::execute()
   aResultIndex++;
 
   FeaturesPlugin_Tools::loadDeletedShapes(aResultBody,
-                                          aFrontShape,
+                                          GeomShapePtr(),
                                           anOriginalShapes,
                                           aMakeShapeList,
                                           aShape);