Skip to content

Commit

Permalink
Merge pull request #90680 from jsjtxietian/skip-.godot
Browse files Browse the repository at this point in the history
Fix editor's file explorer will show directories that should be skipped
  • Loading branch information
akien-mga committed Apr 17, 2024
2 parents c50e80b + d06db65 commit ab24edc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions editor/gui/editor_file_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -968,8 +968,10 @@ 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() && (Engine::get_singleton()->is_project_manager_hint() || !EditorFileSystem::_should_skip_directory(full_path))) {
dirs.push_back(item);
if (dir_access->current_is_dir()) {
if (Engine::get_singleton()->is_project_manager_hint() || !EditorFileSystem::_should_skip_directory(full_path)) {
dirs.push_back(item);
}
} else {
files.push_back(item);
}
Expand Down

0 comments on commit ab24edc

Please sign in to comment.