1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0030392: XCAFDoc_GraphNode doesn't copy backward links

(cherry picked from commit 6131065fae)
(cherry picked from commit 713624228050b8f7db4d8b2e22c7edfd8c832471)
(cherry picked from commit b7fb7db6ae)
(cherry picked from commit 68be9e7b9c)
(cherry picked from commit 4401d8b29ba0fcc7d14ff0456a7204fe0ae5d29b)
This commit is contained in:
snn
2018-11-30 10:39:15 +03:00
committed by nds
parent 8b9c4644db
commit d606a4a2db

View File

@@ -378,6 +378,8 @@ void XCAFDoc_GraphNode::Paste(const Handle(TDF_Attribute)& into,
if (!func.IsNull())
{
intof->SetFather(func);
if (func->ChildIndex(this) && !func->ChildIndex(intof))
func->SetChild(intof);
}
}
@@ -391,6 +393,8 @@ void XCAFDoc_GraphNode::Paste(const Handle(TDF_Attribute)& into,
if (!func.IsNull())
{
intof->SetChild(func);
if (func->FatherIndex(this) && !func->FatherIndex(intof))
func->SetFather(intof);
}
}
intof->SetGraphID(myGraphID);