From 808630f17ce46a91bc4409497cda2173f58db010 Mon Sep 17 00:00:00 2001 From: mpv Date: Thu, 1 Nov 2018 17:49:22 +0300 Subject: [PATCH] Fix for ModelAPI_Test1512 --- 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 4c584ea77..2214929f8 100755 --- a/src/Model/Model_Document.cpp +++ b/src/Model/Model_Document.cpp @@ -1828,7 +1828,7 @@ std::shared_ptr Model_Document::producedByFeature( TopoDS_Shape anOldShape; // old shape in the pair old shape->theShape in the named shape TopoDS_Shape aShapeContainer; // old shape of the shape that contains aShape as sub-element Handle(TNaming_NamedShape) aCandidatInThis, aCandidatContainer; - TDF_Label aBodyLab = aBodyData->label(); + TDF_Label aBodyLab = aBodyData->shapeLab(); // use child and this label (the lowest priority) TDF_ChildIDIterator aNSIter(aBodyLab, TNaming_NamedShape::GetID(), Standard_True); bool aUseThis = !aNSIter.More(); -- 2.39.2