Fix empty_clicked signal when hide_root

fix
This commit is contained in:
voylin 2024-03-19 12:31:32 +09:00
parent 68ad520da4
commit d339c71edc
1 changed files with 1 additions and 0 deletions

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;
}