From 0af9edc6e5392fabbd58390c12c17eedab0d7d9d Mon Sep 17 00:00:00 2001 From: sippeangelo Date: Wed, 17 Feb 2016 10:53:20 +0100 Subject: [PATCH] Editor is properly disabled when disabled in config --- src/Engine/Editor/EditorSystem.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Engine/Editor/EditorSystem.cpp b/src/Engine/Editor/EditorSystem.cpp index 4899519d..921df4dc 100644 --- a/src/Engine/Editor/EditorSystem.cpp +++ b/src/Engine/Editor/EditorSystem.cpp @@ -43,6 +43,8 @@ EditorSystem::EditorSystem(SystemParams params, IRenderer* renderer, RenderFrame m_Enabled = ResourceManager::Load("Config.ini")->Get("Debug.EditorEnabled", false); if (m_Enabled) { Enable(); + } else { + Disable(); } }