Skip to content

Commit

Permalink
Merge pull request #81068 from KoBeWi/is_scene_a_resource
Browse files Browse the repository at this point in the history
Fix Quick Open not opening binary resources
  • Loading branch information
akien-mga committed Aug 28, 2023
2 parents 8df1d90 + cbd0104 commit 031f6de
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions editor/editor_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4025,11 +4025,7 @@ void EditorNode::_quick_opened() {
bool open_scene_dialog = quick_open->get_base_type() == "PackedScene";
for (int i = 0; i < files.size(); i++) {
String res_path = files[i];

List<String> scene_extensions;
ResourceLoader::get_recognized_extensions_for_type("PackedScene", &scene_extensions);

if (open_scene_dialog || scene_extensions.find(files[i].get_extension().to_lower())) {
if (open_scene_dialog || ClassDB::is_parent_class(ResourceLoader::get_resource_type(res_path), "PackedScene")) {
open_request(res_path);
} else {
load_resource(res_path);
Expand Down

0 comments on commit 031f6de

Please sign in to comment.