diff --git a/scene/gui/tree.cpp b/scene/gui/tree.cpp index 524ef2aae4b..42cbef8ea96 100644 --- a/scene/gui/tree.cpp +++ b/scene/gui/tree.cpp @@ -848,6 +848,7 @@ void Tree::update_cache() { cache.title_button_color = get_color("title_button_color"); v_scroll->set_custom_step(cache.font->get_height()); + cache.click_item=get_selected(); }