1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-21 10:13:43 +03:00

refs #54: fix problem with subshapes in opened xbf file.

This commit is contained in:
ika 2017-06-05 14:29:34 +03:00
parent af131bd03e
commit 6b5caeaacf

View File

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