You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
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:
@@ -281,7 +281,7 @@ void VisualScriptFunctionCall::set_basic_type(Variant::Type p_type) {
|
||||
}
|
||||
basic_type = p_type;
|
||||
|
||||
_change_notify();
|
||||
notify_property_list_changed();
|
||||
ports_changed_notify();
|
||||
}
|
||||
|
||||
@@ -295,7 +295,7 @@ void VisualScriptFunctionCall::set_base_type(const StringName &p_type) {
|
||||
}
|
||||
|
||||
base_type = p_type;
|
||||
_change_notify();
|
||||
notify_property_list_changed();
|
||||
ports_changed_notify();
|
||||
}
|
||||
|
||||
@@ -309,7 +309,7 @@ void VisualScriptFunctionCall::set_base_script(const String &p_path) {
|
||||
}
|
||||
|
||||
base_script = p_path;
|
||||
_change_notify();
|
||||
notify_property_list_changed();
|
||||
ports_changed_notify();
|
||||
}
|
||||
|
||||
@@ -328,7 +328,7 @@ void VisualScriptFunctionCall::set_singleton(const StringName &p_type) {
|
||||
base_type = obj->get_class();
|
||||
}
|
||||
|
||||
_change_notify();
|
||||
notify_property_list_changed();
|
||||
ports_changed_notify();
|
||||
}
|
||||
|
||||
@@ -425,7 +425,7 @@ void VisualScriptFunctionCall::set_function(const StringName &p_type) {
|
||||
_update_method_cache();
|
||||
}
|
||||
|
||||
_change_notify();
|
||||
notify_property_list_changed();
|
||||
ports_changed_notify();
|
||||
}
|
||||
|
||||
@@ -439,7 +439,7 @@ void VisualScriptFunctionCall::set_base_path(const NodePath &p_type) {
|
||||
}
|
||||
|
||||
base_path = p_type;
|
||||
_change_notify();
|
||||
notify_property_list_changed();
|
||||
ports_changed_notify();
|
||||
}
|
||||
|
||||
@@ -453,7 +453,7 @@ void VisualScriptFunctionCall::set_call_mode(CallMode p_mode) {
|
||||
}
|
||||
|
||||
call_mode = p_mode;
|
||||
_change_notify();
|
||||
notify_property_list_changed();
|
||||
ports_changed_notify();
|
||||
}
|
||||
|
||||
@@ -476,7 +476,7 @@ void VisualScriptFunctionCall::set_rpc_call_mode(VisualScriptFunctionCall::RPCCa
|
||||
}
|
||||
rpc_call_mode = p_mode;
|
||||
ports_changed_notify();
|
||||
_change_notify();
|
||||
notify_property_list_changed();
|
||||
}
|
||||
|
||||
VisualScriptFunctionCall::RPCCallMode VisualScriptFunctionCall::get_rpc_call_mode() const {
|
||||
@@ -1067,7 +1067,7 @@ void VisualScriptPropertySet::set_basic_type(Variant::Type p_type) {
|
||||
}
|
||||
basic_type = p_type;
|
||||
|
||||
_change_notify();
|
||||
notify_property_list_changed();
|
||||
_update_base_type();
|
||||
ports_changed_notify();
|
||||
}
|
||||
@@ -1082,7 +1082,7 @@ void VisualScriptPropertySet::set_base_type(const StringName &p_type) {
|
||||
}
|
||||
|
||||
base_type = p_type;
|
||||
_change_notify();
|
||||
notify_property_list_changed();
|
||||
ports_changed_notify();
|
||||
}
|
||||
|
||||
@@ -1096,7 +1096,7 @@ void VisualScriptPropertySet::set_base_script(const String &p_path) {
|
||||
}
|
||||
|
||||
base_script = p_path;
|
||||
_change_notify();
|
||||
notify_property_list_changed();
|
||||
ports_changed_notify();
|
||||
}
|
||||
|
||||
@@ -1191,7 +1191,7 @@ void VisualScriptPropertySet::set_property(const StringName &p_type) {
|
||||
property = p_type;
|
||||
index = StringName();
|
||||
_update_cache();
|
||||
_change_notify();
|
||||
notify_property_list_changed();
|
||||
ports_changed_notify();
|
||||
}
|
||||
|
||||
@@ -1206,7 +1206,7 @@ void VisualScriptPropertySet::set_base_path(const NodePath &p_type) {
|
||||
|
||||
base_path = p_type;
|
||||
_update_base_type();
|
||||
_change_notify();
|
||||
notify_property_list_changed();
|
||||
ports_changed_notify();
|
||||
}
|
||||
|
||||
@@ -1221,7 +1221,7 @@ void VisualScriptPropertySet::set_call_mode(CallMode p_mode) {
|
||||
|
||||
call_mode = p_mode;
|
||||
_update_base_type();
|
||||
_change_notify();
|
||||
notify_property_list_changed();
|
||||
ports_changed_notify();
|
||||
}
|
||||
|
||||
@@ -1243,7 +1243,7 @@ void VisualScriptPropertySet::set_index(const StringName &p_type) {
|
||||
}
|
||||
index = p_type;
|
||||
_update_cache();
|
||||
_change_notify();
|
||||
notify_property_list_changed();
|
||||
ports_changed_notify();
|
||||
}
|
||||
|
||||
@@ -1259,7 +1259,7 @@ void VisualScriptPropertySet::set_assign_op(AssignOp p_op) {
|
||||
|
||||
assign_op = p_op;
|
||||
_update_cache();
|
||||
_change_notify();
|
||||
notify_property_list_changed();
|
||||
ports_changed_notify();
|
||||
}
|
||||
|
||||
@@ -1760,7 +1760,7 @@ void VisualScriptPropertyGet::set_base_type(const StringName &p_type) {
|
||||
}
|
||||
|
||||
base_type = p_type;
|
||||
_change_notify();
|
||||
notify_property_list_changed();
|
||||
ports_changed_notify();
|
||||
}
|
||||
|
||||
@@ -1774,7 +1774,7 @@ void VisualScriptPropertyGet::set_base_script(const String &p_path) {
|
||||
}
|
||||
|
||||
base_script = p_path;
|
||||
_change_notify();
|
||||
notify_property_list_changed();
|
||||
ports_changed_notify();
|
||||
}
|
||||
|
||||
@@ -1871,7 +1871,7 @@ void VisualScriptPropertyGet::set_property(const StringName &p_type) {
|
||||
property = p_type;
|
||||
|
||||
_update_cache();
|
||||
_change_notify();
|
||||
notify_property_list_changed();
|
||||
ports_changed_notify();
|
||||
}
|
||||
|
||||
@@ -1885,7 +1885,7 @@ void VisualScriptPropertyGet::set_base_path(const NodePath &p_type) {
|
||||
}
|
||||
|
||||
base_path = p_type;
|
||||
_change_notify();
|
||||
notify_property_list_changed();
|
||||
_update_base_type();
|
||||
ports_changed_notify();
|
||||
}
|
||||
@@ -1900,7 +1900,7 @@ void VisualScriptPropertyGet::set_call_mode(CallMode p_mode) {
|
||||
}
|
||||
|
||||
call_mode = p_mode;
|
||||
_change_notify();
|
||||
notify_property_list_changed();
|
||||
_update_base_type();
|
||||
ports_changed_notify();
|
||||
}
|
||||
@@ -1915,7 +1915,7 @@ void VisualScriptPropertyGet::set_basic_type(Variant::Type p_type) {
|
||||
}
|
||||
basic_type = p_type;
|
||||
|
||||
_change_notify();
|
||||
notify_property_list_changed();
|
||||
ports_changed_notify();
|
||||
}
|
||||
|
||||
@@ -1937,7 +1937,7 @@ void VisualScriptPropertyGet::set_index(const StringName &p_type) {
|
||||
}
|
||||
index = p_type;
|
||||
_update_cache();
|
||||
_change_notify();
|
||||
notify_property_list_changed();
|
||||
ports_changed_notify();
|
||||
}
|
||||
|
||||
@@ -2261,7 +2261,7 @@ void VisualScriptEmitSignal::set_signal(const StringName &p_type) {
|
||||
|
||||
name = p_type;
|
||||
|
||||
_change_notify();
|
||||
notify_property_list_changed();
|
||||
ports_changed_notify();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user