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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user