aboutsummaryrefslogtreecommitdiff
path: root/editor/editor_file_system.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2017-08-06 11:43:48 -0300
committerJuan Linietsky2017-08-06 11:43:48 -0300
commit85945e4367c6c0759f855a3dfefe5941c3c07cd3 (patch)
treeebb5e640d29f6029adee929a7bbe816ae3aa5d01 /editor/editor_file_system.cpp
parent8e51c70374c166aa4f74a1b289aacaef541edf81 (diff)
downloadgodot-85945e4367c6c0759f855a3dfefe5941c3c07cd3.tar.gz
godot-85945e4367c6c0759f855a3dfefe5941c3c07cd3.tar.zst
godot-85945e4367c6c0759f855a3dfefe5941c3c07cd3.zip
Diffstat (limited to 'editor/editor_file_system.cpp')
-rw-r--r--editor/editor_file_system.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/editor/editor_file_system.cpp b/editor/editor_file_system.cpp
index ed5811630..0fd643d03 100644
--- a/editor/editor_file_system.cpp
+++ b/editor/editor_file_system.cpp
@@ -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
continue;
+ if (FileAccess::exists(cd.plus_file(f).plus_file(".gdignore"))) // skip if another project inside this
+ continue;
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
continue;
+ if (FileAccess::exists(cd.plus_file(f).plus_file(".gdignore"))) // skip if another project inside this
+ continue;
EditorFileSystemDirectory *efd = memnew(EditorFileSystemDirectory);