summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2023-05-15 02:04:58 +0200
committerkobewi <kobewi4e@gmail.com>2023-05-15 02:04:58 +0200
commitd1a114470c223499d604352b941cbe2e8afffa7f (patch)
treebb2846385b24affd2b97fd6487f9e387828edfcd
parentfb10f45efe52e330496e325b6b7efd0e52f769b0 (diff)
downloadredot-engine-d1a114470c223499d604352b941cbe2e8afffa7f.tar.gz
Print a warning when a nested project is detected
-rw-r--r--editor/editor_file_system.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/editor/editor_file_system.cpp b/editor/editor_file_system.cpp
index 0cdbddf4c4..74eb2777ed 100644
--- a/editor/editor_file_system.cpp
+++ b/editor/editor_file_system.cpp
@@ -2350,12 +2350,13 @@ bool EditorFileSystem::_should_skip_directory(const String &p_path) {
}
if (FileAccess::exists(p_path.path_join("project.godot"))) {
- // skip if another project inside this
+ // Skip if another project inside this.
+ WARN_PRINT_ONCE(vformat("Detected another project.godot at %s. The folder will be ignored.", p_path));
return true;
}
if (FileAccess::exists(p_path.path_join(".gdignore"))) {
- // skip if a `.gdignore` file is inside this
+ // Skip if a `.gdignore` file is inside this.
return true;
}