diff --git a/src/config.cpp b/src/config.cpp index 16872460..05e589ba 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -741,6 +741,10 @@ void ProjectConfig::setPrefabFilepath(QString filepath) { } QString ProjectConfig::getPrefabFilepath() { + if (this->prefabFilepath.isEmpty()) { + // Default to the /prefabs.json, if no path exists. + this->setPrefabFilepath(QDir(this->projectDir).filePath("prefabs.json")); + } return this->prefabFilepath; }