Fix FileSystemTree rename TextEdit is offset

This commit is contained in:
BrotherShort
2025-05-12 01:53:45 +08:00
parent 19bb18716e
commit 9222341575

View File

@ -2358,7 +2358,7 @@ int Tree::draw_item(const Point2i &p_pos, const Point2 &p_draw_ofs, const Size2
}
}
if ((select_mode == SELECT_ROW && selected_item == p_item) || p_item->cells[i].selected || !p_item->has_meta("__focus_rect")) {
if ((select_mode != SELECT_SINGLE && selected_item == p_item) || p_item->cells[i].selected || !p_item->has_meta("__focus_rect")) {
Rect2i r = cell_rect;
if (select_mode != SELECT_ROW) {