1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +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)
This commit is contained in:
snn
2018-11-30 10:39:15 +03:00
committed by nds
parent 7bc6dba60c
commit 68be9e7b9c

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);