Merge pull request #77081 from KoBeWi/yo_dawg_I_heard_you_like_projects,_so_I_put_a_project_in_your_project

Print a warning when a nested project is detected
This commit is contained in:
Rémi Verschelde 2023-05-16 11:01:55 +02:00
commit 557fa5c31a
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 3 additions and 2 deletions

View File

@ -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;
}