Merge pull request #81068 from KoBeWi/is_scene_a_resource
Fix Quick Open not opening binary resources
This commit is contained in:
commit
031f6deefb
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue