Merge pull request #12559 from Cradmon/filesystemDockFix

Fix to issue #12554, due to error in refactoring in PR #10261
This commit is contained in:
Rémi Verschelde 2017-11-01 12:45:08 +01:00 committed by GitHub
commit 584bc88834
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}
}
}