Fixed shadow mapping rendering incorrectly & Fixed crashed if open scene was cancelled

This commit is contained in:
Antoine Pilote
2024-08-11 00:57:41 -04:00
parent 3c857992ad
commit 24cd93c342
5 changed files with 286 additions and 275 deletions

View File

@@ -2244,6 +2244,10 @@ namespace Nuake {
{
// Parse the project and load it.
std::string projectPath = FileDialog::OpenFile(".scene");
if (projectPath.empty() || !FileSystem::FileExists(projectPath, true))
{
return;
}
Ref<Scene> scene = Scene::New();
const std::string& fileContent = FileSystem::ReadFile(projectPath, true);