Fix scene import following List iterator changes

This commit is contained in:
Aaron Franke 2021-07-24 14:30:43 -04:00
parent 4e6efd1b07
commit c0ce2b3397
No known key found for this signature in database
GPG Key ID: 40A1750B977E56BF
1 changed files with 4 additions and 4 deletions

View File

@ -1310,9 +1310,9 @@ Node *ResourceImporterScene::pre_import(const String &p_source_file) {
List<String> extensions;
E->get()->get_extensions(&extensions);
for (String &F : extensions) {
for (const String &F : extensions) {
if (F.to_lower() == ext) {
importer = E;
importer = E->get();
break;
}
}
@ -1350,9 +1350,9 @@ Error ResourceImporterScene::import(const String &p_source_file, const String &p
List<String> extensions;
E->get()->get_extensions(&extensions);
for (String &F : extensions) {
for (const String &F : extensions) {
if (F.to_lower() == ext) {
importer = E;
importer = E->get();
break;
}
}