Add logging and cleaning up leaked scene objects after play mode in Editor

This commit is contained in:
Wojtek Figat
2024-04-22 22:59:38 +02:00
parent d8a1de64d1
commit 890569ea3b
6 changed files with 46 additions and 3 deletions

View File

@@ -721,6 +721,15 @@ void Scripting::Reload(bool canTriggerSceneReload)
#endif
Array<ScriptingObject*, HeapAllocation> Scripting::GetObjects()
{
Array<ScriptingObject*> objects;
_objectsLocker.Lock();
_objectsDictionary.GetValues(objects);
_objectsLocker.Unlock();
return objects;
}
MClass* Scripting::FindClass(const StringAnsiView& fullname)
{
if (fullname.IsEmpty())