2
0
mirror of https://github.com/godotengine/godot.git synced 2025-04-25 01:48:08 +08:00

Fix : drag unselected tree item when 2+ tree items selected now correctly drag the pointed item

This commit is contained in:
Aryombre 2025-03-12 14:25:36 +01:00
parent c2ba0a8646
commit eeb46b7c70

@ -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 {