Salome HOME
Compsolids: initial implementation of sub-results of results on the data model level.
[modules/shaper.git] / src / FeaturesPlugin / FeaturesPlugin_Movement.cpp
index 3a298e2a4c255f9c193fc84e6cf1b23dd1e7647d..ebe2eb8081d8a9962bce2f59728abc6ef09ce1f7 100644 (file)
@@ -119,15 +119,14 @@ void FeaturesPlugin_Movement::LoadNamingDS(const GeomAlgoAPI_Movement& theMoveme
                                            std::shared_ptr<ModelAPI_ResultBody> theResultBody,
                                            std::shared_ptr<GeomAPI_Shape> theBaseShape)
 {
-  ModelAPI_BodyBuilder* aResultBuilder = theResultBody->getBodyBuilder();
   // Store result.
-  aResultBuilder->storeModified(theBaseShape, theMovementAlgo.shape());
+  theResultBody->storeModified(theBaseShape, theMovementAlgo.shape());
 
   std::shared_ptr<GeomAPI_DataMapOfShapeShape> aSubShapes = theMovementAlgo.mapOfShapes();
 
   int aMovedTag = 1;
   std::string aMovedName = "Moved";
-  aResultBuilder->loadAndOrientModifiedShapes(theMovementAlgo.makeShape().get(),
+  theResultBody->loadAndOrientModifiedShapes(theMovementAlgo.makeShape().get(),
                                               theBaseShape, GeomAPI_Shape::FACE,
                                               aMovedTag, aMovedName, *aSubShapes.get());