Core/Node: Make destructor lighter

This commit is contained in:
SirLynix 2024-02-11 22:50:20 +01:00
parent e4c339293b
commit 66e3734942
1 changed files with 2 additions and 1 deletions

View File

@ -19,7 +19,8 @@ namespace Nz
child->OnParenting(nullptr);
}
SetParent(nullptr);
if (m_parent)
m_parent->RemoveChild(this);
}
Node& Node::Interpolate(const Node& nodeA, const Node& nodeB, float interpolation, CoordSys coordSys, Invalidation invalidation)