mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-09 20:08:57 +03:00
Fixed scene loading through menu bar
This commit is contained in:
@@ -1964,7 +1964,8 @@ namespace Nuake {
|
||||
std::string projectPath = FileDialog::OpenFile(".scene");
|
||||
|
||||
Ref<Scene> scene = Scene::New();
|
||||
if (!scene->Deserialize(FileSystem::ReadFile(projectPath, true)))
|
||||
const std::string& fileContent = FileSystem::ReadFile(projectPath, true);
|
||||
if (!scene->Deserialize(json::parse(fileContent)))
|
||||
{
|
||||
Logger::Log("Error failed loading scene: " + projectPath, "editor", CRITICAL);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user