diff options
author | Aaron Franke <arnfranke@yahoo.com> | 2021-07-24 14:30:43 -0400 |
---|---|---|
committer | Aaron Franke <arnfranke@yahoo.com> | 2021-07-24 14:56:53 -0400 |
commit | c0ce2b339732180d1dc6a62b142166c9c1d62a52 (patch) | |
tree | 84085ec9bc4e726952257f21917fcda5c70b4613 | |
parent | 4e6efd1b07f1c6d53d226977ddc729333b74306a (diff) |
Fix scene import following List iterator changes
-rw-r--r-- | editor/import/resource_importer_scene.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/editor/import/resource_importer_scene.cpp b/editor/import/resource_importer_scene.cpp index e1aa858b90..d67950ec9e 100644 --- a/editor/import/resource_importer_scene.cpp +++ b/editor/import/resource_importer_scene.cpp @@ -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; } } |