mirror of
https://github.com/godotengine/godot.git
synced 2025-01-24 21:01:50 +08:00
Merge pull request #89664 from voylin/tree-empty-clicked-fix
Fix `empty_clicked` signal in Tree when using `hide_root`
This commit is contained in:
commit
6ccf425a68
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user