mirror of
https://github.com/godotengine/godot.git
synced 2024-11-21 19:42:43 +00:00
Revert "Merge pull request #68498 from Rindbee/improve-update_tree"
This reverts commitd5dc70a478
, reversing changes made toccbefa1f43
.
This commit is contained in:
parent
0160fea1ce
commit
eee9e3cd9a
@ -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;
|
||||
@ -3906,9 +3902,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();
|
||||
|
@ -542,8 +542,6 @@ class EditorInspector : public ScrollContainer {
|
||||
void _show_add_meta_dialog();
|
||||
void _check_meta_name(const String &p_name);
|
||||
|
||||
void _update_tree();
|
||||
|
||||
protected:
|
||||
static void _bind_methods();
|
||||
void _notification(int p_what);
|
||||
|
Loading…
Reference in New Issue
Block a user