From 620e4c0f8a5fc0f34a6dd3a2d8883775d71186b2 Mon Sep 17 00:00:00 2001 From: SweetId <2630750+SweetId@users.noreply.github.com> Date: Wed, 11 Oct 2023 20:28:40 -0400 Subject: [PATCH] removing singleton attribute --- include/NazaraEditor/Core/Application/BaseApplication.hpp | 1 - src/NazaraEditor/Core/Application/BaseApplication.cpp | 2 -- 2 files changed, 3 deletions(-) diff --git a/include/NazaraEditor/Core/Application/BaseApplication.hpp b/include/NazaraEditor/Core/Application/BaseApplication.hpp index 3af712d..eaa15e8 100644 --- a/include/NazaraEditor/Core/Application/BaseApplication.hpp +++ b/include/NazaraEditor/Core/Application/BaseApplication.hpp @@ -50,7 +50,6 @@ namespace Nz std::vector> m_windows; std::vector> m_actions; - static EditorBaseApplication* s_instance; Nz::Level m_level; }; } \ No newline at end of file diff --git a/src/NazaraEditor/Core/Application/BaseApplication.cpp b/src/NazaraEditor/Core/Application/BaseApplication.cpp index 6a55c00..dc41d78 100644 --- a/src/NazaraEditor/Core/Application/BaseApplication.cpp +++ b/src/NazaraEditor/Core/Application/BaseApplication.cpp @@ -5,8 +5,6 @@ namespace Nz EditorBaseApplication::EditorBaseApplication() : m_level(this) { - s_instance = this; - auto& windowing = AddComponent(); std::shared_ptr device = Nz::Graphics::Instance()->GetRenderDevice();