瀏覽代碼

Fix adding a translation CSV results in errors on initial import for many types of resources

Hilderin 1 年之前
父節點
當前提交
d04b5d2629
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      editor/editor_file_system.cpp

+ 4 - 2
editor/editor_file_system.cpp

@@ -2072,7 +2072,6 @@ void EditorFileSystem::update_files(const Vector<String> &p_script_paths) {
 	}
 
 	if (updated) {
-		_process_update_pending();
 		if (update_files_icon_cache) {
 			_update_files_icon_path();
 		} else {
@@ -2080,7 +2079,10 @@ void EditorFileSystem::update_files(const Vector<String> &p_script_paths) {
 				_update_file_icon_path(fi);
 			}
 		}
-		call_deferred(SNAME("emit_signal"), "filesystem_changed"); //update later
+		if (!is_scanning()) {
+			_process_update_pending();
+			call_deferred(SNAME("emit_signal"), "filesystem_changed"); //update later
+		}
 	}
 }