Fix editor's file explorer will show directories that should be skipped
This commit is contained in:
parent
d00734053f
commit
d06db652ef
@ -968,8 +968,10 @@ void EditorFileDialog::update_file_list() {
|
|||||||
}
|
}
|
||||||
} else if (!dir_access->current_is_hidden()) {
|
} else if (!dir_access->current_is_hidden()) {
|
||||||
String full_path = cdir == "res://" ? item : dir_access->get_current_dir() + "/" + item;
|
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))) {
|
if (dir_access->current_is_dir()) {
|
||||||
dirs.push_back(item);
|
if (Engine::get_singleton()->is_project_manager_hint() || !EditorFileSystem::_should_skip_directory(full_path)) {
|
||||||
|
dirs.push_back(item);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
files.push_back(item);
|
files.push_back(item);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user