You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-14 13:41:12 +00:00
Tree: Don't draw selection background of individual cells in Row mode
This commit is contained in:
@@ -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));
|
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()) {
|
if (has_focus()) {
|
||||||
cache.selected_focus->draw(ci, r);
|
cache.selected_focus->draw(ci, r);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user