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:
reduz 2021-02-10 17:18:45 -03:00
parent e8f73124a7
commit 1aa2823fa3
124 changed files with 350 additions and 580 deletions

View file

@ -61,7 +61,7 @@ protected:
}
void _sig_changed() {
_change_notify();
notify_property_list_changed();
emit_signal("changed");
}
@ -172,7 +172,7 @@ protected:
public:
void edit(const StringName &p_sig) {
sig = p_sig;
_change_notify();
notify_property_list_changed();
}
VisualScriptEditorSignalEdit() { undo_redo = nullptr; }
@ -195,11 +195,10 @@ protected:
}
void _var_changed() {
_change_notify();
notify_property_list_changed();
emit_signal("changed");
}
void _var_value_changed() {
_change_notify("value"); // So the whole tree is not redrawn, makes editing smoother in general.
emit_signal("changed");
}
@ -331,7 +330,7 @@ protected:
public:
void edit(const StringName &p_var) {
var = p_var;
_change_notify();
notify_property_list_changed();
}
VisualScriptEditorVariableEdit() { undo_redo = nullptr; }