From: vsv Date: Fri, 22 Apr 2016 15:46:13 +0000 (+0300) Subject: Issue #1432: Highlight Feature by shape in comp-solid X-Git-Tag: V_2.3.0~120 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=aac21cb3ea0b9dd1e6116723e42ab3bcaa2d00e9;p=modules%2Fshaper.git Issue #1432: Highlight Feature by shape in comp-solid --- diff --git a/src/Model/Model_Document.cpp b/src/Model/Model_Document.cpp index 9836570f0..072b07d71 100755 --- a/src/Model/Model_Document.cpp +++ b/src/Model/Model_Document.cpp @@ -1302,8 +1302,8 @@ std::shared_ptr Model_Document::producedByFeature( Handle(TNaming_NamedShape) aCandidatInThis, aCandidatContainer; TDF_Label aBodyLab = aBodyData->label(); // use childs and this label (the lowest priority) - bool aUseThis = false; TDF_ChildIDIterator aNSIter(aBodyLab, TNaming_NamedShape::GetID(), Standard_True); + bool aUseThis = !aNSIter.More(); while(anOldShape.IsNull() && (aNSIter.More() || aUseThis)) { Handle(TNaming_NamedShape) aNS; if (aUseThis) {