From aac21cb3ea0b9dd1e6116723e42ab3bcaa2d00e9 Mon Sep 17 00:00:00 2001 From: vsv Date: Fri, 22 Apr 2016 18:46:13 +0300 Subject: [PATCH] Issue #1432: Highlight Feature by shape in comp-solid --- src/Model/Model_Document.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.39.2