You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-31 18:41:20 +00:00
Merge pull request #112941 from Break-Ben/scene-tree-double-click-fix
Fix error when double-clicking nothing on scene tree
This commit is contained in:
@@ -4165,7 +4165,7 @@ void Tree::gui_input(const Ref<InputEvent> &p_event) {
|
||||
if (rtl) {
|
||||
pressing_pos.x = get_size().width - pressing_pos.x;
|
||||
}
|
||||
} else if (mb->is_double_click()) {
|
||||
} else if (mb->is_double_click() && get_item_at_position(mb->get_position()) != nullptr) {
|
||||
emit_signal(SNAME("item_icon_double_clicked"));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user