From 70cf3cbd60a9a852ff1cdf0dd8401d2b111f6f03 Mon Sep 17 00:00:00 2001 From: Zae Date: Fri, 8 Oct 2021 21:15:05 +0800 Subject: Fix `EditorFileSystem` not checking `.gdignore` in existed directory --- editor/editor_file_system.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'editor') diff --git a/editor/editor_file_system.cpp b/editor/editor_file_system.cpp index 953989aadd..6fef65c92d 100644 --- a/editor/editor_file_system.cpp +++ b/editor/editor_file_system.cpp @@ -1078,8 +1078,8 @@ void EditorFileSystem::_scan_fs_changes(EditorFileSystemDirectory *p_dir, const } for (int i = 0; i < p_dir->subdirs.size(); i++) { - if (updated_dir && !p_dir->subdirs[i]->verified) { - //this directory was removed, add action to remove it + if ((updated_dir && !p_dir->subdirs[i]->verified) || _should_skip_directory(p_dir->subdirs[i]->get_path())) { + //this directory was removed or ignored, add action to remove it ItemAction ia; ia.action = ItemAction::ACTION_DIR_REMOVE; ia.dir = p_dir->subdirs[i]; -- cgit v1.2.3