From cbd01043f09b8b3f649e09a159f82f283f67e622 Mon Sep 17 00:00:00 2001 From: kobewi Date: Mon, 28 Aug 2023 12:57:14 +0200 Subject: [PATCH] Fix Quick Open not opening binary resources --- editor/editor_node.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index d6dea2dc799c..cf63b5598977 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -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 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);