diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-05 12:56:07 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-05 12:56:07 +0100 |
commit | d29193affe7b9e2ce2a88e86c1731ea3b8ccd5d6 (patch) | |
tree | 09b982d95637342d4a7ea5cce2d500bb452531ac /editor/editor_inspector.cpp | |
parent | 60b028971db2e1954faccefb5fba45751830bc6c (diff) | |
parent | 724f2422d7711b2d4adf5deaaf5b58156d977dfe (diff) | |
download | redot-engine-d29193affe7b9e2ce2a88e86c1731ea3b8ccd5d6.tar.gz |
Merge pull request #70909 from TokageItLab/revert-improve-update_tree
Revert improve update tree
Diffstat (limited to 'editor/editor_inspector.cpp')
-rw-r--r-- | editor/editor_inspector.cpp | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/editor/editor_inspector.cpp b/editor/editor_inspector.cpp index 9a3eb75416..9037851127 100644 --- a/editor/editor_inspector.cpp +++ b/editor/editor_inspector.cpp @@ -2586,7 +2586,7 @@ bool EditorInspector::_is_property_disabled_by_feature_profile(const StringName return false; } -void EditorInspector::_update_tree() { +void EditorInspector::update_tree() { //to update properly if all is refreshed StringName current_selected = property_selected; int current_focusable = -1; @@ -3305,10 +3305,6 @@ void EditorInspector::_update_tree() { } } -void EditorInspector::update_tree() { - update_tree_pending = true; -} - void EditorInspector::update_property(const String &p_prop) { if (!editor_property_map.has(p_prop)) { return; @@ -3365,10 +3361,7 @@ void EditorInspector::set_keying(bool p_active) { return; } keying = p_active; - // Propagate the keying state to its editor properties. - Array args; - args.append(keying); - main_vbox->propagate_call(SNAME("set_keying"), args, true); + update_tree(); } void EditorInspector::set_read_only(bool p_read_only) { @@ -3906,9 +3899,10 @@ void EditorInspector::_notification(int p_what) { changing++; if (update_tree_pending) { + update_tree(); update_tree_pending = false; pending.clear(); - _update_tree(); + } else { while (pending.size()) { StringName prop = *pending.begin(); |