Silence some warnings

This commit is contained in:
Georg Hagen
2024-07-02 21:29:15 +02:00
parent c008c98311
commit fa51f868b7
10 changed files with 36 additions and 13 deletions

View File

@@ -12,7 +12,7 @@
namespace OpenVulkano::Scene
{
Node::Node()
: localMat(1), worldMat(1)
: localMat(1), worldMat(1), enabled(true)
{}
Node::~Node() noexcept
@@ -57,6 +57,11 @@ namespace OpenVulkano::Scene
node->UpdateWorldMatrix(worldMat);
}
void Node::AddChildIfParentless(Node* node)
{
if (!node->parent) AddChild(node);
}
void Node::RemoveChild(Node* node)
{
if (node->parent == this)