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
This commit is contained in:
Mansur Isaev 2023-09-14 17:07:14 +04:00
parent 3ed4497113
commit 4982bec8b7

View file

@ -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;
}