浏览代码

Fix editor will freeze when modifying filesystem filter path in Split Mode

jsjtxietian 1 年之前
父节点
当前提交
650b9d62e4
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      editor/filesystem_dock.cpp

+ 3 - 0
editor/filesystem_dock.cpp

@@ -1004,6 +1004,9 @@ void FileSystemDock::_update_file_list(bool p_keep_selection) {
 			}
 		}
 	} else {
+		if (!directory.begins_with("res://")) {
+			directory = "res://" + directory;
+		}
 		// Get infos on the directory + file.
 		if (directory.ends_with("/") && directory != "res://") {
 			directory = directory.substr(0, directory.length() - 1);