mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-21 01:59:15 -05:00
Deinitialize scenegraph nodes when scenegraph is deinitialized
This commit is contained in:
@@ -303,7 +303,10 @@ void SceneGraph::scheduleLoadSceneFile(const std::string& sceneDescriptionFilePa
|
||||
}
|
||||
|
||||
void SceneGraph::clearSceneGraph() {
|
||||
// deallocate the scene graph. Recursive deallocation will occur
|
||||
for (auto node : _nodes)
|
||||
node->deinitialize();
|
||||
|
||||
// deallocate the scene graph. Recursive deallocation will occur
|
||||
delete _root;
|
||||
_root = nullptr;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user