X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FFeaturesPlugin%2FFeaturesPlugin_Placement.cpp;h=d38f20c199adcb499e626d865ff4ea37647563d2;hb=4fc2dc9fdc0c14fab5f2780598eccdc1368d81b9;hp=1fcfa7618e3d27a44f9e9f4f65b400ca9ad2f7f0;hpb=9ba045c054ba0c390261989e9cc543c878254299;p=modules%2Fshaper.git diff --git a/src/FeaturesPlugin/FeaturesPlugin_Placement.cpp b/src/FeaturesPlugin/FeaturesPlugin_Placement.cpp index 1fcfa7618..d38f20c19 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_Placement.cpp +++ b/src/FeaturesPlugin/FeaturesPlugin_Placement.cpp @@ -55,7 +55,8 @@ void FeaturesPlugin_Placement::execute() for(int anObjectsIndex = 0; anObjectsIndex < anObjectsSelList->size(); anObjectsIndex++) { std::shared_ptr anObjectAttr = anObjectsSelList->value(anObjectsIndex); std::shared_ptr anObject = anObjectAttr->value(); - if(!anObject.get()) { + if(!anObject.get()) { // may be for not-activated parts + eraseResults(); return; } anObjects.push_back(anObject); @@ -193,11 +194,11 @@ void FeaturesPlugin_Placement::LoadNamingDS(GeomAlgoAPI_Transform& theTransformA //load result theResultBody->storeModified(theSlaveObject, theTransformAlgo.shape()); // the initial Slave, the resulting Slave - std::shared_ptr aSubShapes = theTransformAlgo.mapOfShapes(); + std::shared_ptr aSubShapes = theTransformAlgo.mapOfSubShapes(); // put modifed faces in DF std::string aModName = "Modified"; - theResultBody->loadAndOrientModifiedShapes(theTransformAlgo.makeShape().get(), - theSlaveObject, _FACE, - _MODIFIEDF_TAG, aModName, *aSubShapes.get()); + theResultBody->loadAndOrientModifiedShapes(&theTransformAlgo, + theSlaveObject, _FACE, + _MODIFIEDF_TAG, aModName, *aSubShapes.get()); }