mirror of
https://github.com/godotengine/godot.git
synced 2025-01-24 11:32:51 -05:00
Calculate __focus_rect when TreeItem is focused
(cherry picked from commit 2035992a07
)
This commit is contained in:
parent
49c521021a
commit
d966f00954
1 changed files with 1 additions and 1 deletions
|
@ -1165,7 +1165,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) {
|
||||
if ((select_mode == SELECT_ROW && selected_item == p_item) || p_item->cells[i].selected || !p_item->has_meta("__focus_rect")) {
|
||||
Rect2i r(cell_rect.position, cell_rect.size);
|
||||
|
||||
if (p_item->cells[i].text.size() > 0) {
|
||||
|
|
Loading…
Add table
Reference in a new issue