Merge pull request #64148 from timothyqiu/tree-row-cell-bg-3.x

This commit is contained in:
Rémi Verschelde 2022-08-10 00:04:03 +02:00 committed by GitHub
commit 450c178570
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1177,7 +1177,7 @@ int Tree::draw_item(const Point2i &p_pos, const Point2 &p_draw_ofs, const Size2
}
p_item->set_meta("__focus_rect", Rect2(r.position, r.size));
if (p_item->cells[i].selected) {
if (select_mode != SELECT_ROW && p_item->cells[i].selected) {
if (has_focus()) {
cache.selected_focus->draw(ci, r);
} else {