瀏覽代碼

Remove unnecessay update on FileSystem dock

volzhs 7 年之前
父節點
當前提交
c3d18aed8c
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. 1 3
      editor/filesystem_dock.cpp

+ 1 - 3
editor/filesystem_dock.cpp

@@ -591,9 +591,7 @@ void FileSystemDock::_select_file(int p_idx) {
 		if (fpath != "res://") {
 			fpath = fpath.substr(0, fpath.length() - 1);
 		}
-		path = fpath;
-		_update_files(false);
-		navigate_to_path(path);
+		navigate_to_path(fpath);
 	} else {
 		if (ResourceLoader::get_resource_type(fpath) == "PackedScene") {
 			editor->open_request(fpath);