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 commit6131065fae
) (cherry picked from commit 713624228050b8f7db4d8b2e22c7edfd8c832471) (cherry picked from commitb7fb7db6ae
)
This commit is contained in:
@@ -378,6 +378,8 @@ void XCAFDoc_GraphNode::Paste(const Handle(TDF_Attribute)& into,
|
|||||||
if (!func.IsNull())
|
if (!func.IsNull())
|
||||||
{
|
{
|
||||||
intof->SetFather(func);
|
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())
|
if (!func.IsNull())
|
||||||
{
|
{
|
||||||
intof->SetChild(func);
|
intof->SetChild(func);
|
||||||
|
if (func->FatherIndex(this) && !func->FatherIndex(intof))
|
||||||
|
func->SetFather(intof);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
intof->SetGraphID(myGraphID);
|
intof->SetGraphID(myGraphID);
|
||||||
|
Reference in New Issue
Block a user