From d339c71edc3927ee649e2f2bfbb460cddbca8bb7 Mon Sep 17 00:00:00 2001 From: voylin <0voylin0@gmail.com> Date: Tue, 19 Mar 2024 12:31:32 +0900 Subject: [PATCH] Fix empty_clicked signal when hide_root fix --- scene/gui/tree.cpp | 1 + 1 file changed, 1 insertion(+) 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; }