From eb56e0c63aee03152ae9182499ee94a3215de386 Mon Sep 17 00:00:00 2001 From: azv Date: Mon, 13 May 2019 14:39:47 +0300 Subject: [PATCH] Fix incorrect order of results when processing compsolids --- src/FeaturesPlugin/FeaturesPlugin_Boolean.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/FeaturesPlugin/FeaturesPlugin_Boolean.cpp b/src/FeaturesPlugin/FeaturesPlugin_Boolean.cpp index e39c1f99f..44612077c 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_Boolean.cpp +++ b/src/FeaturesPlugin/FeaturesPlugin_Boolean.cpp @@ -575,16 +575,14 @@ void FeaturesPlugin_Boolean::ObjectHierarchy::SplitCompound(const GeomShapePtr& if (aFoundIndex == myParentIndices.end()) return; // no such shape - const ListOfShape& aSubs = mySubshapes[aFoundIndex->second].second; + theUsed = mySubshapes[aFoundIndex->second].second; SetOfShape aSubsSet; - aSubsSet.insert(aSubs.begin(), aSubs.end()); + aSubsSet.insert(theUsed.begin(), theUsed.end()); for (GeomAPI_ShapeIterator anExp(theCompShape); anExp.more(); anExp.next()) { GeomShapePtr aCurrent = anExp.current(); if (aSubsSet.find(aCurrent) == aSubsSet.end()) theNotUsed.push_back(aCurrent); - else - theUsed.push_back(aCurrent); } } -- 2.39.2