mirror of
https://github.com/huderlem/porymap.git
synced 2026-09-25 01:05:38 -05:00
Set default prefabs config filepath
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user