Set default prefabs config filepath
This commit is contained in:
parent
300fde4b86
commit
4eeff2ed21
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue