From 2cef656ead695430f359d8397a9fd291898a1b2e Mon Sep 17 00:00:00 2001 From: SweetId <2630750+SweetId@users.noreply.github.com> Date: Mon, 16 Oct 2023 19:45:51 -0400 Subject: [PATCH] Don't call NewLevel during app ctor --- src/NazaraEditor/Core/Application/BaseApplication.cpp | 2 -- src/NazaraEditor/Editor/main.cpp | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/NazaraEditor/Core/Application/BaseApplication.cpp b/src/NazaraEditor/Core/Application/BaseApplication.cpp index 27f8bb3..1e759f3 100644 --- a/src/NazaraEditor/Core/Application/BaseApplication.cpp +++ b/src/NazaraEditor/Core/Application/BaseApplication.cpp @@ -25,8 +25,6 @@ namespace Nz Nz::Imgui::Instance()->Init(window); ImGui::EnsureContextOnThisThread(); - NewLevel(); - AddUpdaterFunc(Interval{ Nz::Time::Milliseconds(16) }, [&](Nz::Time elapsed) { if (!window.IsOpen()) return; diff --git a/src/NazaraEditor/Editor/main.cpp b/src/NazaraEditor/Editor/main.cpp index fdb950f..e967703 100644 --- a/src/NazaraEditor/Editor/main.cpp +++ b/src/NazaraEditor/Editor/main.cpp @@ -73,7 +73,5 @@ int WinMain(int argc, char* argv[]) .type(entt::type_hash::value()) .func<&Nz::ReflectComponent, Nz::EditorNameComponent>>(entt::hashed_string("Reflect")); - entt::handle entity = app.CreateEntity("TestEntity"); - return app.Run(); } \ No newline at end of file