Fix issues with de/re-initialisation
This commit is contained in:
@@ -35,7 +35,7 @@ namespace openVulkanoCpp::Scene
|
||||
void Drawable::RemoveNode(Node* node)
|
||||
{
|
||||
Utils::Remove(m_nodes, node);
|
||||
if (m_nodes.empty())
|
||||
if (m_nodes.empty() && m_scene)
|
||||
{
|
||||
m_scene->RemoveDrawable(this);
|
||||
m_scene = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user