From 1aa2823fa32c7a4b41d806418ec99949fc44ffb3 Mon Sep 17 00:00:00 2001 From: reduz Date: Wed, 10 Feb 2021 17:18:45 -0300 Subject: Removed _change_notify -For inspector refresh, the inspector now detects if a property change by polling a few times per second and then does update the control if so. This process is very cheap. -For property list refresh, a new signal (property_list_changed) was added to Object. _change_notify() is replaced by notify_property_list_changed() -Changed all objects using the old method to the signal, or just deleted the calls to _change_notify() since they are unnecesary now. --- scene/gui/tab_container.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'scene/gui/tab_container.cpp') diff --git a/scene/gui/tab_container.cpp b/scene/gui/tab_container.cpp index 3377ac62e6..861f66628d 100644 --- a/scene/gui/tab_container.cpp +++ b/scene/gui/tab_container.cpp @@ -747,8 +747,6 @@ void TabContainer::set_current_tab(int p_current) { _repaint(); - _change_notify("current_tab"); - if (pending_previous == current) { emit_signal("tab_selected", current); } else { @@ -967,8 +965,6 @@ void TabContainer::set_tab_align(TabAlign p_align) { ERR_FAIL_INDEX(p_align, 3); align = p_align; update(); - - _change_notify("tab_align"); } TabContainer::TabAlign TabContainer::get_tab_align() const { -- cgit v1.2.3