X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FFeaturesPlugin%2FFeaturesPlugin_Movement.cpp;h=ebe2eb8081d8a9962bce2f59728abc6ef09ce1f7;hb=f328eabbb64e9fe347f36728710ebe1ebb00de6e;hp=3a298e2a4c255f9c193fc84e6cf1b23dd1e7647d;hpb=4df8e41bd2fdbee3bb669a84abf7b080c386a76f;p=modules%2Fshaper.git diff --git a/src/FeaturesPlugin/FeaturesPlugin_Movement.cpp b/src/FeaturesPlugin/FeaturesPlugin_Movement.cpp index 3a298e2a4..ebe2eb808 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_Movement.cpp +++ b/src/FeaturesPlugin/FeaturesPlugin_Movement.cpp @@ -119,15 +119,14 @@ void FeaturesPlugin_Movement::LoadNamingDS(const GeomAlgoAPI_Movement& theMoveme std::shared_ptr theResultBody, std::shared_ptr theBaseShape) { - ModelAPI_BodyBuilder* aResultBuilder = theResultBody->getBodyBuilder(); // Store result. - aResultBuilder->storeModified(theBaseShape, theMovementAlgo.shape()); + theResultBody->storeModified(theBaseShape, theMovementAlgo.shape()); std::shared_ptr 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());