mirror of https://github.com/godotengine/godot
Don't select invisible items in FileSystem dock
This commit is contained in:
parent
172fc62c80
commit
ac1d4f2bec
|
|
@ -2053,7 +2053,7 @@ Vector<String> FileSystemDock::_tree_get_selected(bool remove_self_inclusion, bo
|
|||
TreeItem *selected = tree->get_root();
|
||||
selected = tree->get_next_selected(selected);
|
||||
while (selected) {
|
||||
if (selected != cursor_item && selected != favorites_item) {
|
||||
if (selected != cursor_item && selected != favorites_item && selected->is_visible_in_tree()) {
|
||||
selected_strings.push_back(selected->get_metadata(0));
|
||||
}
|
||||
selected = tree->get_next_selected(selected);
|
||||
|
|
|
|||
Loading…
Reference in New Issue