]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/FeaturesPlugin/FeaturesPlugin_Placement.cpp
Salome HOME
Compsolids: initial implementation of sub-results of results on the data model level.
[modules/shaper.git] / src / FeaturesPlugin / FeaturesPlugin_Placement.cpp
index a52a2be08bfbc45a5d5953b4fa6e333963d1a647..38bf6f1d3df4e38a7293fa3fdedcde9d7e6719b7 100644 (file)
@@ -169,15 +169,14 @@ void FeaturesPlugin_Placement::LoadNamingDS(GeomAlgoAPI_Transform& theTransformA
                                             std::shared_ptr<ModelAPI_ResultBody> theResultBody,
                                             std::shared_ptr<GeomAPI_Shape> theSlaveObject)
 {
-  ModelAPI_BodyBuilder* aResultBuilder = theResultBody->getBodyBuilder();
   //load result
-  aResultBuilder->storeModified(theSlaveObject, theTransformAlgo.shape()); // the initial Slave, the resulting Slave
+  theResultBody->storeModified(theSlaveObject, theTransformAlgo.shape()); // the initial Slave, the resulting Slave
 
   std::shared_ptr<GeomAPI_DataMapOfShapeShape> aSubShapes = theTransformAlgo.mapOfShapes();
 
     // put modifed faces in DF
   std::string aModName = "Modified";
-  aResultBuilder->loadAndOrientModifiedShapes(theTransformAlgo.makeShape().get(),
+  theResultBody->loadAndOrientModifiedShapes(theTransformAlgo.makeShape().get(),
                                               theSlaveObject, _FACE,
                                               _MODIFIEDF_TAG, aModName, *aSubShapes.get());
 }