Merge pull request #79984 from KoBeWi/reverse_engineering_or_something_idk

Reverse condition for skipping directories
This commit is contained in:
Yuri Sizov 2023-08-01 20:03:51 +02:00
commit 2d6e98d9c8
1 changed files with 1 additions and 1 deletions

View File

@ -823,7 +823,7 @@ void EditorFileDialog::update_file_list() {
}
} else if (!dir_access->current_is_hidden()) {
String full_path = cdir == "res://" ? item : dir_access->get_current_dir() + "/" + item;
if (dir_access->current_is_dir() && (!EditorFileSystem::_should_skip_directory(full_path) || Engine::get_singleton()->is_project_manager_hint())) {
if (dir_access->current_is_dir() && (Engine::get_singleton()->is_project_manager_hint() || !EditorFileSystem::_should_skip_directory(full_path))) {
dirs.push_back(item);
} else {
files.push_back(item);