Merge pull request #104032 from Aryombre/103858-fix-drag-unselected-tree-item

Tree: Fix dragging unselected item when a selection already exists
This commit is contained in:
Thaddeus Crews 2025-03-13 08:57:14 -05:00
commit 86a0433db6
No known key found for this signature in database
GPG key ID: 62181B86FE9E5D84

View file

@ -3012,6 +3012,9 @@ int Tree::propagate_mouse_event(const Point2i &p_pos, int x_ofs, int y_ofs, int
int icount = _count_selected_items(root);
if (select_mode == SELECT_MULTI && icount > 1 && p_button != MouseButton::RIGHT) {
if (!already_selected) {
select_single_item(p_item, root, col);
}
single_select_defer = p_item;
single_select_defer_column = col;
} else {