You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-04 19:21:46 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user