Fixed Node::OnParenting callback not called

Former-commit-id: a6a88b0edf40910e80fa1c4e23637cd9a42c851e
This commit is contained in:
Lynix 2013-08-16 00:23:53 +02:00
parent 3ff401e413
commit dc2762aade
1 changed files with 2 additions and 3 deletions

View File

@ -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