From e4a55b388bdb3360a3f71f2b70e10ac17270f528 Mon Sep 17 00:00:00 2001 From: dbv Date: Thu, 17 Dec 2015 17:49:56 +0300 Subject: [PATCH] Partition naming fix. --- src/FeaturesPlugin/FeaturesPlugin_Partition.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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. -- 2.39.2