Added a .gdignore check to ignore specific folders. Closes #8461
This commit is contained in:
parent
8e51c70374
commit
85945e4367
1 changed files with 4 additions and 0 deletions
|
@ -512,6 +512,8 @@ void EditorFileSystem::_scan_new_dir(EditorFileSystemDirectory *p_dir, DirAccess
|
||||||
|
|
||||||
if (FileAccess::exists(cd.plus_file(f).plus_file("project.godot"))) // skip if another project inside this
|
if (FileAccess::exists(cd.plus_file(f).plus_file("project.godot"))) // skip if another project inside this
|
||||||
continue;
|
continue;
|
||||||
|
if (FileAccess::exists(cd.plus_file(f).plus_file(".gdignore"))) // skip if another project inside this
|
||||||
|
continue;
|
||||||
|
|
||||||
dirs.push_back(f);
|
dirs.push_back(f);
|
||||||
|
|
||||||
|
@ -691,6 +693,8 @@ void EditorFileSystem::_scan_fs_changes(EditorFileSystemDirectory *p_dir, const
|
||||||
|
|
||||||
if (FileAccess::exists(cd.plus_file(f).plus_file("project.godot"))) // skip if another project inside this
|
if (FileAccess::exists(cd.plus_file(f).plus_file("project.godot"))) // skip if another project inside this
|
||||||
continue;
|
continue;
|
||||||
|
if (FileAccess::exists(cd.plus_file(f).plus_file(".gdignore"))) // skip if another project inside this
|
||||||
|
continue;
|
||||||
|
|
||||||
EditorFileSystemDirectory *efd = memnew(EditorFileSystemDirectory);
|
EditorFileSystemDirectory *efd = memnew(EditorFileSystemDirectory);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue