diff options
author | Juan Linietsky <reduzio@gmail.com> | 2015-11-18 19:15:13 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2015-11-18 19:15:13 -0300 |
commit | 75922c57d6f2ba00ea5f8456134fffc64868acf1 (patch) | |
tree | 389237b38714a58df94dc654a62e085bafb7527d /scene/gui | |
parent | 326781f4c9477885057a282e798550f9811f291c (diff) | |
parent | f256e421b52f248f76a7cb116c49f781f089aa49 (diff) |
Merge pull request #2635 from StraToN/tabs-buttons
Fixed bug : both tab buttons appearing hovered
Diffstat (limited to 'scene/gui')
-rw-r--r-- | scene/gui/tabs.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/gui/tabs.cpp b/scene/gui/tabs.cpp index 8e448dfb2b..47a55e0716 100644 --- a/scene/gui/tabs.cpp +++ b/scene/gui/tabs.cpp @@ -102,11 +102,13 @@ void Tabs::_input_event(const InputEvent& p_event) { // test hovering right button and close button if (tabs[i].rb_rect.has_point(pos)) { rb_hover=i; + cb_hover=-1; hover_buttons = i; break; } else if (tabs[i].cb_rect.has_point(pos)) { cb_hover=i; + rb_hover=-1; hover_buttons = i; break; } |