mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
Fix tree drawing the pressed stylebox in all buttons in the column
This commit is contained in:
parent
ae3d316798
commit
5708006340
@ -1030,7 +1030,7 @@ int Tree::draw_item(const Point2i& p_pos,const Point2& p_draw_ofs, const Size2&
|
||||
|
||||
Point2i o = Point2i( ofs+w-s.width, p_pos.y )-cache.offset+p_draw_ofs;
|
||||
|
||||
if (cache.click_type==Cache::CLICK_BUTTON && cache.click_item==p_item && cache.click_column==i && !p_item->cells[i].buttons[j].disabled) {
|
||||
if (cache.click_type==Cache::CLICK_BUTTON && cache.click_item==p_item && cache.click_column==i && cache.click_index==j && !p_item->cells[i].buttons[j].disabled) {
|
||||
//being pressed
|
||||
cache.button_pressed->draw(get_canvas_item(),Rect2(o,s));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user