Set default prefabs config filepath

This commit is contained in:
Marcus Huderle 2022-09-10 08:54:16 -05:00
parent 300fde4b86
commit 4eeff2ed21

View file

@ -741,6 +741,10 @@ void ProjectConfig::setPrefabFilepath(QString filepath) {
}
QString ProjectConfig::getPrefabFilepath() {
if (this->prefabFilepath.isEmpty()) {
// Default to the <projectroot>/prefabs.json, if no path exists.
this->setPrefabFilepath(QDir(this->projectDir).filePath("prefabs.json"));
}
return this->prefabFilepath;
}