You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 19:31:35 +00:00
Deselect column only if belongs to deselected item
(cherry picked from commit 5cd5722f6a)
This commit is contained in:
@@ -3203,11 +3203,11 @@ void Tree::item_selected(int p_column, TreeItem *p_item) {
|
||||
|
||||
void Tree::item_deselected(int p_column, TreeItem *p_item) {
|
||||
if (selected_item == p_item) {
|
||||
selected_item = NULL;
|
||||
}
|
||||
selected_item = nullptr;
|
||||
|
||||
if (selected_col == p_column) {
|
||||
selected_col = -1;
|
||||
if (selected_col == p_column) {
|
||||
selected_col = -1;
|
||||
}
|
||||
}
|
||||
|
||||
if (select_mode == SELECT_MULTI || select_mode == SELECT_SINGLE) {
|
||||
|
||||
Reference in New Issue
Block a user