From: dbv Date: Thu, 17 Dec 2015 14:49:56 +0000 (+0300) Subject: Partition naming fix. X-Git-Tag: V_2.1.0~150 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e4a55b388bdb3360a3f71f2b70e10ac17270f528;p=modules%2Fshaper.git Partition naming fix. --- diff --git a/src/FeaturesPlugin/FeaturesPlugin_Partition.cpp b/src/FeaturesPlugin/FeaturesPlugin_Partition.cpp index 5b0591708..52ee4eaf6 100755 --- a/src/FeaturesPlugin/FeaturesPlugin_Partition.cpp +++ b/src/FeaturesPlugin/FeaturesPlugin_Partition.cpp @@ -116,9 +116,12 @@ void FeaturesPlugin_Partition::execute() if(isCombine) { // Create single result. - std::shared_ptr aCompoud = GeomAlgoAPI_CompoundBuilder::compound(anObjects); - anObjects.clear(); - anObjects.push_back(aCompoud); + if(!aTools.empty()) { + // This is a workaround for naming. Passing compound of objects as argument instead each object separately. + std::shared_ptr aCompoud = GeomAlgoAPI_CompoundBuilder::compound(anObjects); + anObjects.clear(); + anObjects.push_back(aCompoud); + } GeomAlgoAPI_Partition aPartitionAlgo(anObjects, aTools); // Checking that the algorithm worked properly.