Merge pull request #89664 from voylin/tree-empty-clicked-fix

Fix `empty_clicked` signal in Tree when using `hide_root`
This commit is contained in:
Rémi Verschelde 2024-03-24 01:20:59 +01:00
commit 6ccf425a68
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -3868,6 +3868,7 @@ void Tree::gui_input(const Ref<InputEvent> &p_event) {
}
if (!root || (!root->get_first_child() && hide_root)) {
emit_signal(SNAME("empty_clicked"), get_local_mouse_position(), mb->get_button_index());
break;
}