Editor is properly disabled when disabled in config

This commit is contained in:
2016-02-17 10:53:20 +01:00
parent 969e7cb0d5
commit 0af9edc6e5
+2
View File
@@ -43,6 +43,8 @@ EditorSystem::EditorSystem(SystemParams params, IRenderer* renderer, RenderFrame
m_Enabled = ResourceManager::Load<ConfigFile>("Config.ini")->Get<bool>("Debug.EditorEnabled", false);
if (m_Enabled) {
Enable();
} else {
Disable();
}
}