summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorHaoyu Qiu <timothyqiu32@gmail.com>2022-04-19 14:42:16 +0800
committerHaoyu Qiu <timothyqiu32@gmail.com>2022-04-19 14:42:16 +0800
commit925167c4eaea0ac385cd85b3712a33c73c07b066 (patch)
treeccfbdcb41bfc30441f9e39adaa53663e9d63fac6 /editor
parent1d2177938df078dae7be87665b7caf27c123cd38 (diff)
Reset refresh countdown if pending update tree request
Diffstat (limited to 'editor')
-rw-r--r--editor/editor_inspector.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/editor/editor_inspector.cpp b/editor/editor_inspector.cpp
index d5085942c3..f9cf14661d 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) {