Skip to content

Commit

Permalink
Tree: Don't draw selection background of individual cells in Row mode
Browse files Browse the repository at this point in the history
  • Loading branch information
timothyqiu committed Aug 9, 2022
1 parent 1394ee9 commit 4c47c6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scene/gui/tree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 4c47c6a

Please sign in to comment.