diff options
author | voylin <0voylin0@gmail.com> | 2024-03-19 12:31:32 +0900 |
---|---|---|
committer | voylin <0voylin0@gmail.com> | 2024-03-22 09:19:56 +0900 |
commit | d339c71edc3927ee649e2f2bfbb460cddbca8bb7 (patch) | |
tree | 5db677544015b322ffc9c59fe94db764adb0621f | |
parent | 68ad520da4365c866ceea42e0238b2ea24647289 (diff) | |
download | redot-engine-d339c71edc3927ee649e2f2bfbb460cddbca8bb7.tar.gz |
Fix empty_clicked signal when hide_root
fix
-rw-r--r-- | scene/gui/tree.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/gui/tree.cpp b/scene/gui/tree.cpp index 7842fc5fc0..8c544dcacf 100644 --- a/scene/gui/tree.cpp +++ b/scene/gui/tree.cpp @@ -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; } |