From 4982bec8b71b38d03e55ed1fd7d7949ddbb38372 Mon Sep 17 00:00:00 2001 From: Mansur Isaev <737dab2f169a@mail.ru> Date: Thu, 14 Sep 2023 17:07:14 +0400 Subject: [PATCH] Removes the equality check for `set_tab_metadata` Makes the code equivalent to the `Tree.set_metadata` code. Fix: https://github.com/godotengine/godot/issues/81647 --- scene/gui/tab_bar.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/scene/gui/tab_bar.cpp b/scene/gui/tab_bar.cpp index a9c16a99424..19063c95055 100644 --- a/scene/gui/tab_bar.cpp +++ b/scene/gui/tab_bar.cpp @@ -770,11 +770,6 @@ bool TabBar::is_tab_hidden(int p_tab) const { void TabBar::set_tab_metadata(int p_tab, const Variant &p_metadata) { ERR_FAIL_INDEX(p_tab, tabs.size()); - - if (tabs[p_tab].metadata == p_metadata) { - return; - } - tabs.write[p_tab].metadata = p_metadata; }