diff options
author | Franklin Sobrinho <franklin_gs@hotmail.com> | 2016-07-10 19:03:43 -0300 |
---|---|---|
committer | Franklin Sobrinho <franklin_gs@hotmail.com> | 2016-07-10 19:03:43 -0300 |
commit | 57080063407cc77c400197b07a1bf47f8cb40978 (patch) | |
tree | ff08897e9fa2ae622f69e682a67ed777d8f194fd /scene | |
parent | ae3d316798b6fbb36f73e7c2c0724dfac4f7ecad (diff) |
Fix tree drawing the pressed stylebox in all buttons in the column
Diffstat (limited to 'scene')
-rw-r--r-- | scene/gui/tree.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/tree.cpp b/scene/gui/tree.cpp index a3d6ac9714..305a3920da 100644 --- a/scene/gui/tree.cpp +++ b/scene/gui/tree.cpp @@ -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)); } |