Don't call NewLevel during app ctor

This commit is contained in:
SweetId 2023-10-16 19:45:51 -04:00
parent 14b5088e26
commit 2cef656ead
2 changed files with 0 additions and 4 deletions

View File

@ -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;

View File

@ -73,7 +73,5 @@ int WinMain(int argc, char* argv[])
.type(entt::type_hash<Nz::EditorNameComponent>::value())
.func<&Nz::ReflectComponent<Nz::EditorPropertyInspector<Nz::EditorRenderer>, Nz::EditorNameComponent>>(entt::hashed_string("Reflect"));
entt::handle entity = app.CreateEntity("TestEntity");
return app.Run();
}