mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
refs #54: fix problem with subshapes in opened xbf file.
This commit is contained in:
parent
af131bd03e
commit
6b5caeaacf
@ -1031,8 +1031,11 @@ Standard_Boolean XCAFDoc_ShapeTool::IsSubShape (const TDF_Label &shapeL,
|
||||
const TopoDS_Shape &sub) const
|
||||
{
|
||||
Handle(XCAFDoc_ShapeMapTool) A;
|
||||
if ( ! shapeL.FindAttribute(XCAFDoc_ShapeMapTool::GetID(), A) )
|
||||
return Standard_False;
|
||||
if (!shapeL.FindAttribute(XCAFDoc_ShapeMapTool::GetID(), A)) {
|
||||
A = XCAFDoc_ShapeMapTool::Set(shapeL);
|
||||
TopoDS_Shape aShape = GetShape(shapeL);
|
||||
A->SetShape(aShape);
|
||||
}
|
||||
|
||||
//TopoDS_Shape S = GetShape ( shapeL );
|
||||
//return ! S.IsNull() && CheckSubShape ( S, sub );
|
||||
|
Loading…
x
Reference in New Issue
Block a user