Don't call NewLevel during app ctor
This commit is contained in:
parent
14b5088e26
commit
2cef656ead
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
Loading…
Reference in New Issue