Fix logic for right-arrowing through tree columns in light of other recent tree selection changes.

This commit is contained in:
Nolan Darilek 2019-09-24 14:42:46 -05:00
parent e82fd7f8b8
commit d0afc9e4e3

View File

@ -232,11 +232,10 @@ var button_index
func tree_item_selected():
button_index = null
var cell = node.get_selected()
if cell:
cell.select(0)
if node.select_mode == Tree.SELECT_MULTI:
tree_deselect_all_but(cell, node.get_root())
if cell != prev_selected_cell:
if node.select_mode == Tree.SELECT_MULTI:
cell.select(0)
tree_deselect_all_but(cell, node.get_root())
tree_item_render()
prev_selected_cell = cell
else: