Fixed Node::OnParenting callback not called
Former-commit-id: a6a88b0edf40910e80fa1c4e23637cd9a42c851e
This commit is contained in:
parent
3ff401e413
commit
dc2762aade
|
|
@ -42,10 +42,9 @@ m_transformMatrixUpdated(false)
|
|||
NzNode::~NzNode()
|
||||
{
|
||||
for (NzNode* child : m_childs)
|
||||
child->m_parent = nullptr;
|
||||
child->SetParent(nullptr);
|
||||
|
||||
if (m_parent)
|
||||
m_parent->RemoveChild(this);
|
||||
SetParent(nullptr);
|
||||
}
|
||||
|
||||
void NzNode::EnsureDerivedUpdate() const
|
||||
|
|
|
|||
Loading…
Reference in New Issue