mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-08 14:17:06 +03:00
0030392: XCAFDoc_GraphNode doesn't copy backward links
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user