You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
Print a warning when a nested project is detected
This commit is contained in:
@@ -2350,12 +2350,13 @@ bool EditorFileSystem::_should_skip_directory(const String &p_path) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (FileAccess::exists(p_path.path_join("project.godot"))) {
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (FileAccess::exists(p_path.path_join(".gdignore"))) {
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user