Temp fix for SceneGraph crash
This commit is contained in:
parent
d432822608
commit
cfa07e9b3b
|
@ -90,10 +90,15 @@ namespace SHADE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Go through the map and release all the nodes
|
// Go through the map and release all the nodes
|
||||||
for (auto* node : entityNodeMap | std::views::values)
|
for (auto*& node : entityNodeMap | std::views::values)
|
||||||
ReleaseNode(node);
|
{
|
||||||
|
delete node;
|
||||||
|
node = nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
delete root;
|
entityNodeMap.clear();
|
||||||
|
|
||||||
|
//delete root;
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
SHLOG_INFO("Scene Graph Destroyed Successfully!")
|
SHLOG_INFO("Scene Graph Destroyed Successfully!")
|
||||||
|
|
Loading…
Reference in New Issue