diff --git a/scene/gui/tree.cpp b/scene/gui/tree.cpp index 7842fc5fc00..8c544dcacf0 100644 --- a/scene/gui/tree.cpp +++ b/scene/gui/tree.cpp @@ -3868,6 +3868,7 @@ void Tree::gui_input(const Ref &p_event) { } if (!root || (!root->get_first_child() && hide_root)) { + emit_signal(SNAME("empty_clicked"), get_local_mouse_position(), mb->get_button_index()); break; }