浏览代码

Fix to issue #12554, due to error in refactoring in PR #10261

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

+ 3 - 3
editor/filesystem_dock.cpp

@@ -595,10 +595,10 @@ void FileSystemDock::_select_file(int p_idx) {
 		current_path->set_text(path);
 		_push_to_history();
 	} else {
-		if (ResourceLoader::get_resource_type(path) == "PackedScene") {
-			editor->open_request(path);
+		if (ResourceLoader::get_resource_type(fpath) == "PackedScene") {
+			editor->open_request(fpath);
 		} else {
-			editor->load_resource(path);
+			editor->load_resource(fpath);
 		}
 	}
 }