mirror of
https://github.com/godotengine/godot.git
synced 2025-10-23 18:03:35 +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:
parent
e8f73124a7
commit
1aa2823fa3
124 changed files with 350 additions and 580 deletions
|
|
@ -152,7 +152,7 @@ void VisualScriptYield::set_yield_mode(YieldMode p_mode) {
|
|||
}
|
||||
yield_mode = p_mode;
|
||||
ports_changed_notify();
|
||||
_change_notify();
|
||||
notify_property_list_changed();
|
||||
}
|
||||
|
||||
VisualScriptYield::YieldMode VisualScriptYield::get_yield_mode() {
|
||||
|
|
@ -359,7 +359,7 @@ void VisualScriptYieldSignal::set_base_type(const StringName &p_type) {
|
|||
|
||||
base_type = p_type;
|
||||
|
||||
_change_notify();
|
||||
notify_property_list_changed();
|
||||
ports_changed_notify();
|
||||
}
|
||||
|
||||
|
|
@ -374,7 +374,7 @@ void VisualScriptYieldSignal::set_signal(const StringName &p_type) {
|
|||
|
||||
signal = p_type;
|
||||
|
||||
_change_notify();
|
||||
notify_property_list_changed();
|
||||
ports_changed_notify();
|
||||
}
|
||||
|
||||
|
|
@ -389,7 +389,7 @@ void VisualScriptYieldSignal::set_base_path(const NodePath &p_type) {
|
|||
|
||||
base_path = p_type;
|
||||
|
||||
_change_notify();
|
||||
notify_property_list_changed();
|
||||
ports_changed_notify();
|
||||
}
|
||||
|
||||
|
|
@ -404,7 +404,7 @@ void VisualScriptYieldSignal::set_call_mode(CallMode p_mode) {
|
|||
|
||||
call_mode = p_mode;
|
||||
|
||||
_change_notify();
|
||||
notify_property_list_changed();
|
||||
ports_changed_notify();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue