Browse Source

Fix empty_clicked signal when hide_root

fix
voylin 1 năm trước cách đây
mục cha
commit
d339c71edc
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      scene/gui/tree.cpp

+ 1 - 0
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;
 				}