Ver Fonte

Merge pull request #14743 from volzhs/unnecessary-update-files

Remove unnecessay update on FileSystem dock
Rémi Verschelde há 7 anos atrás
pai
commit
a7f09b71f9
1 ficheiros alterados com 1 adições e 3 exclusões
  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);