Merge pull request #50816 from aaronfranke/iterators-fix-scene-import

Fix scene import following List iterator changes
This commit is contained in:
Rémi Verschelde 2021-07-24 21:22:47 +02:00 committed by GitHub
commit f6599e05a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;
}
}