(Node) Fixed "Child not found" warnings
Former-commit-id: e9f60071ef0b12155bc26d339e06ccc160fac1fd
This commit is contained in:
parent
95cb02c41c
commit
4b09757f63
|
|
@ -41,7 +41,12 @@ m_transformMatrixUpdated(false)
|
||||||
NzNode::~NzNode()
|
NzNode::~NzNode()
|
||||||
{
|
{
|
||||||
for (NzNode* child : m_childs)
|
for (NzNode* child : m_childs)
|
||||||
child->SetParent(nullptr);
|
{
|
||||||
|
// child->SetParent(nullptr); serait problématique car elle nous appellerait
|
||||||
|
child->m_parent = nullptr;
|
||||||
|
child->InvalidateNode();
|
||||||
|
child->OnParenting(nullptr);
|
||||||
|
}
|
||||||
|
|
||||||
SetParent(nullptr);
|
SetParent(nullptr);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue