Fix tree drawing the pressed stylebox in all buttons in the column
This commit is contained in:
parent
ae3d316798
commit
5708006340
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue