Merge pull request #47341 from Bogunovich/fix-FileSystemDock_select_file

Fix opening scene (.tscn) via FileSystem
This commit is contained in:
Rémi Verschelde 2021-03-24 23:58:06 +01:00 committed by GitHub
commit 869fe5d302
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -967,7 +967,7 @@ void FileSystemDock::_select_file(const String &p_path, bool p_select_in_favorit
ResourceImporterScene::get_singleton()->get_recognized_extensions(&importer_exts);
String extension = fpath.get_extension();
for (List<String>::Element *E = importer_exts.front(); E; E = E->next()) {
if (extension.nocasecmp_to(E->get())) {
if (extension.nocasecmp_to(E->get()) == 0) {
is_imported = true;
break;
}