Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Clearing scripting instances when unloading scenes
Browse files Browse the repository at this point in the history
  • Loading branch information
t3m1X committed Apr 2, 2020
1 parent fd155fa commit b9261dd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Broken Engine/Source/ModuleSceneManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include "ComponentBone.h"
#include "ModuleUI.h"
#include "ModuleSelection.h"
#include "ModuleScripting.h"

//#include "ModuleGui.h"

Expand Down Expand Up @@ -481,6 +482,7 @@ void ModuleSceneManager::SetActiveScene(ResourceScene* scene)

// --- Release current scene ---
currentScene->Release();
App->scripting->CleanUpInstances();

// --- Clear root ---
root->childs.clear();
Expand Down

0 comments on commit b9261dd

Please sign in to comment.