You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-30 16:26:50 +00:00
Merge pull request #56408 from eazrael/tree-fix-selectionmode-row
Tree: Fix de-select when selection mode set to SELECT_ROW
This commit is contained in:
@@ -2195,8 +2195,10 @@ void Tree::select_single_item(TreeItem *p_selected, TreeItem *p_current, int p_c
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
} else if (c.selected) {
|
} else if (c.selected) {
|
||||||
|
if (p_selected != p_current) {
|
||||||
|
// Deselect other rows.
|
||||||
c.selected = false;
|
c.selected = false;
|
||||||
//p_current->deselected_signal.call(p_col);
|
}
|
||||||
}
|
}
|
||||||
} else if (select_mode == SELECT_SINGLE || select_mode == SELECT_MULTI) {
|
} else if (select_mode == SELECT_SINGLE || select_mode == SELECT_MULTI) {
|
||||||
if (!r_in_range && &selected_cell == &c) {
|
if (!r_in_range && &selected_cell == &c) {
|
||||||
|
|||||||
Reference in New Issue
Block a user