Make sure we always initialize with a scene

This commit is contained in:
Simon Lübeß
2023-07-17 04:00:30 +02:00
parent 28155ec92c
commit 88b393157a
+3 -2
View File
@@ -109,7 +109,9 @@ namespace GlitchyEditor
if (args.Count >= 1)
LoadSceneFile(args[0]);
else
// Create a new scene, if LoadSceneFile failed
if (_activeScene == null)
NewScene();
}
@@ -199,7 +201,6 @@ namespace GlitchyEditor
if (_sceneState != .Edit && _isPaused)
updateMode = .None;
_activeScene.Update(gameTime, updateMode);
// Clear the swapchain-buffer