From: mpv Date: Fri, 21 Dec 2018 16:48:08 +0000 (+0300) Subject: Additional fixes for neighbors selection basing on the current unit-tests results. X-Git-Tag: End2018~11 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a7337125ce7cda3bfc6edfa8615d76e2abe31d22;p=modules%2Fshaper.git Additional fixes for neighbors selection basing on the current unit-tests results. --- diff --git a/src/Selector/Selector_FilterByNeighbors.cpp b/src/Selector/Selector_FilterByNeighbors.cpp index 908ca5fa1..e98899b66 100644 --- a/src/Selector/Selector_FilterByNeighbors.cpp +++ b/src/Selector/Selector_FilterByNeighbors.cpp @@ -312,8 +312,8 @@ TDF_Label Selector_FilterByNeighbors::restoreByName(std::string theName, } else { aContext = aSubContext; } - if (!aContext.IsNull()) // for filters by neighbor the latest context shape is vital - aContext = theNameGenerator->newestContext(aContext); + //if (!aContext.IsNull()) // for filters by neighbor the latest context shape is vital + // aContext = theNameGenerator->newestContext(aContext); // searching for the level index std::string aLevel; @@ -398,7 +398,7 @@ std::string Selector_FilterByNeighbors::name(Selector_NameGenerator* theNameGene } // sub-name already contains the needed context name, so, here it is not needed if (aThisContextNameNeeded && ( - aSubName.find(aContextName) == 0 || aSubName.substr(1).find(aContextName)) == 0) + aSubName.find(aContextName) == 0 || aSubName.substr(1).find(aContextName) == 0)) aThisContextNameNeeded = false; } if (aThisContextNameNeeded) {