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(<property>) since they are unnecesary now.
This commit is contained in:
@ -1394,7 +1394,7 @@ void AnimationTree::_update_properties() {
|
||||
|
||||
properties_dirty = false;
|
||||
|
||||
_change_notify();
|
||||
notify_property_list_changed();
|
||||
}
|
||||
|
||||
bool AnimationTree::_set(const StringName &p_name, const Variant &p_value) {
|
||||
@ -1404,9 +1404,6 @@ bool AnimationTree::_set(const StringName &p_name, const Variant &p_value) {
|
||||
|
||||
if (property_map.has(p_name)) {
|
||||
property_map[p_name] = p_value;
|
||||
#ifdef TOOLS_ENABLED
|
||||
_change_notify(p_name.operator String().utf8().get_data());
|
||||
#endif
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user