1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

Bug #297 Fix IsSubShape method in ShapeTool

Pick a part of commit for 0029599
This commit is contained in:
ika
2018-05-08 13:22:01 +03:00
parent f9bbb14a47
commit 2b34e50d7b

View File

@@ -1043,10 +1043,13 @@ Standard_Boolean XCAFDoc_ShapeTool::IsSubShape (const TDF_Label &shapeL,
{
Handle(XCAFDoc_ShapeMapTool) A;
if (!shapeL.FindAttribute(XCAFDoc_ShapeMapTool::GetID(), A))
{
TopoDS_Shape aShape = GetShape(shapeL);
if (aShape.IsNull())
return Standard_False;
//TopoDS_Shape S = GetShape ( shapeL );
//return ! S.IsNull() && CheckSubShape ( S, sub );
A = XCAFDoc_ShapeMapTool::Set(shapeL);
A->SetShape(aShape);
}
return A->IsSubShape(sub);
}