diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-04-26 12:12:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-26 12:12:29 +0200 |
commit | 004567e0cd402516bd9adb58248359355aeb7809 (patch) | |
tree | 30be7ae5cc7e7c3d36d77c9e98105ef35cfb7139 /editor | |
parent | c45202a89b8762a4fa805c6038c42e3aaa1f8ce0 (diff) | |
parent | 925167c4eaea0ac385cd85b3712a33c73c07b066 (diff) |
Merge pull request #60367 from timothyqiu/refresh-cd
Diffstat (limited to 'editor')
-rw-r--r-- | editor/editor_inspector.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/editor/editor_inspector.cpp b/editor/editor_inspector.cpp index bd9b0ae1c8..5d47b87fbf 100644 --- a/editor/editor_inspector.cpp +++ b/editor/editor_inspector.cpp @@ -3515,7 +3515,9 @@ void EditorInspector::_notification(int p_what) { get_v_scroll_bar()->call_deferred(SNAME("set_value"), update_scroll_request); update_scroll_request = -1; } - if (refresh_countdown > 0) { + if (update_tree_pending) { + refresh_countdown = float(EditorSettings::get_singleton()->get("docks/property_editor/auto_refresh_interval")); + } else if (refresh_countdown > 0) { refresh_countdown -= get_process_delta_time(); if (refresh_countdown <= 0) { for (const KeyValue<StringName, List<EditorProperty *>> &F : editor_property_map) { |