diff --git a/src/src/Engine.cpp b/src/src/Engine.cpp index 72d2633..03a4f3c 100644 --- a/src/src/Engine.cpp +++ b/src/src/Engine.cpp @@ -19,7 +19,6 @@ #include "editor/windows/AssetBrowser.h" #include "editor/windows/Inspector.h" - #include #include #include @@ -442,7 +441,6 @@ void Engine::Init() Logger::LogInfo("Initialized Engine"); } - void Engine::collectObjects(bool playing, const glm::vec2 &camPos, float camZoom) { m_toDraw.clear(); @@ -604,11 +602,15 @@ void Engine::Run() { ImGui::Checkbox("Enable Lighting", &g_engineConfig.settings.lighting_enabled); ImGui::Checkbox("Enable Gizmos", &g_engineConfig.settings.draw_gizmos); - ImGui::Checkbox("Profiling", &g_engineConfig.settings.profile_enabled); - if (g_engineConfig.settings.profile_enabled) + if (ImGui::BeginMenu("Settings")) { - ImGui::Checkbox("Profile Engine", &g_engineConfig.settings.profile_editor); - ImGui::Checkbox("Deep Profileing", &g_engineConfig.settings.profile_deep); + ImGui::Checkbox("Profiling", &g_engineConfig.settings.profile_enabled); + if (g_engineConfig.settings.profile_enabled) + { + ImGui::Checkbox("Profile Engine", &g_engineConfig.settings.profile_editor); + ImGui::Checkbox("Deep Profileing", &g_engineConfig.settings.profile_deep); + } + ImGui::EndMenu(); } ImGui::EndMenu(); }