1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-18 14:27:39 +03:00

0028842: Attribute TNaming_NamedShape is not restored from .sgd document

This commit is contained in:
vro
2017-06-23 11:13:47 +03:00
committed by bugmaster
parent a2a6c87265
commit 68223adbc7
2 changed files with 16 additions and 2 deletions

View File

@@ -644,7 +644,8 @@ Handle(TopoDS_TShape) ShapePersistent_BRep::pTVertex::createTShape() const
aTVertex->Tolerance (myTolerance);
aTVertex->Pnt (myPnt);
myPoints->Import (aTVertex->ChangePoints());
if (myPoints)
myPoints->Import (aTVertex->ChangePoints());
return aTVertex;
}
@@ -662,7 +663,8 @@ Handle(TopoDS_TShape) ShapePersistent_BRep::pTEdge::createTShape() const
aTEdge->SameRange ((myFlags & RangeMask) != 0);
aTEdge->Degenerated ((myFlags & DegeneratedMask) != 0);
myCurves->Import (aTEdge->ChangeCurves());
if (myCurves)
myCurves->Import (aTEdge->ChangeCurves());
return aTEdge;
}