mirror of
https://github.com/godotengine/godot
synced 2024-09-05 18:39:21 +00:00
Merge pull request #68546 from marzecdawid/fix-deselect-all-in_tree
Fix errors while deselecting all tree items; issue #65185
This commit is contained in:
commit
47507a07fd
|
@ -4218,7 +4218,9 @@ Tree::SelectMode Tree::get_select_mode() const {
|
|||
void Tree::deselect_all() {
|
||||
TreeItem *item = get_next_selected(get_root());
|
||||
while (item) {
|
||||
item->deselect(selected_col);
|
||||
for (int i = 0; i < columns.size(); i++) {
|
||||
item->deselect(i);
|
||||
}
|
||||
TreeItem *prev_item = item;
|
||||
item = get_next_selected(get_root());
|
||||
ERR_FAIL_COND(item == prev_item);
|
||||
|
|
Loading…
Reference in a new issue