summaryrefslogtreecommitdiff
path: root/editor/editor_inspector.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/editor_inspector.cpp')
-rw-r--r--editor/editor_inspector.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/editor/editor_inspector.cpp b/editor/editor_inspector.cpp
index a5397a8e6a..2df14aef6c 100644
--- a/editor/editor_inspector.cpp
+++ b/editor/editor_inspector.cpp
@@ -2597,7 +2597,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;
@@ -3316,6 +3316,10 @@ 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;
@@ -3910,10 +3914,9 @@ 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();