From 7c3e936879222bb1105a0442731ef27e858c165e Mon Sep 17 00:00:00 2001 From: Bashar Ahmed Date: Sun, 2 Oct 2022 20:39:08 +0530 Subject: [PATCH] unselect scene before delteing any scene --- rootex/framework/scene.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/rootex/framework/scene.cpp b/rootex/framework/scene.cpp index 04688f1f5..faf46ed37 100644 --- a/rootex/framework/scene.cpp +++ b/rootex/framework/scene.cpp @@ -302,6 +302,7 @@ bool Scene::removeChild(Scene* toRemove) { if ((*child).get() == toRemove) { + EventManager::GetSingleton()->call(EditorEvents::EditorReset); m_ChildrenScenes.erase(child); return true; }