Fixed FGD saving, Scene building

This commit is contained in:
Antoine Pilote
2021-07-02 02:07:32 -04:00
parent 14190508cf
commit e5306bfed4
13 changed files with 391 additions and 158 deletions

View File

@@ -90,6 +90,7 @@ json Project::Serialize()
SERIALIZE_VAL(Description);
SERIALIZE_VAL_LBL("DefaultScene", DefaultScene->Path);
SERIALIZE_VAL_LBL("EntityDefinition", EntityDefinitionsFile->Path);
SERIALIZE_VAL(TrenchbroomPath);
END_SERIALIZE();
}
@@ -128,6 +129,11 @@ bool Project::Deserialize(const std::string& str)
EntityDefinitionsFile->Deserialize(content);
}
if (j.contains("TrenchbroomPath"))
{
this->TrenchbroomPath = j["TrenchbroomPath"];
}
DefaultScene->Path = scenePath;
Logger::Log("Successfully loaded scene: " + scenePath);