diff options
author | Anilforextra <anilforextra@gmail.com> | 2021-09-25 14:46:45 +0545 |
---|---|---|
committer | Anilforextra <anilforextra@gmail.com> | 2021-09-25 14:46:45 +0545 |
commit | cdd912c48eab15f581459afc2cda8fdcfabf92db (patch) | |
tree | d2d4ce59b2e55c8947103fc40ce1258728a8dc65 /scene/gui/tabs.cpp | |
parent | 5e4a71200e25811d8e570d87f08f0878dabb8bb9 (diff) | |
download | redot-engine-cdd912c48eab15f581459afc2cda8fdcfabf92db.tar.gz |
Construct values only when necessary.
Diffstat (limited to 'scene/gui/tabs.cpp')
-rw-r--r-- | scene/gui/tabs.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/tabs.cpp b/scene/gui/tabs.cpp index 3ca2d1c1e9..e1479b8bd6 100644 --- a/scene/gui/tabs.cpp +++ b/scene/gui/tabs.cpp @@ -167,7 +167,7 @@ void Tabs::gui_input(const Ref<InputEvent> &p_event) { if (mb->is_pressed() && (mb->get_button_index() == MOUSE_BUTTON_LEFT || (select_with_rmb && mb->get_button_index() == MOUSE_BUTTON_RIGHT))) { // clicks - Point2 pos(mb->get_position().x, mb->get_position().y); + Point2 pos = mb->get_position(); if (buttons_visible) { Ref<Texture2D> incr = get_theme_icon(SNAME("increment")); |