summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLyuma <xn.lyuma@gmail.com>2021-11-11 03:24:51 -0800
committerLyuma <xn.lyuma@gmail.com>2021-11-11 03:24:51 -0800
commit37c11e415913c56c66ffb84e98aa815b8c8493aa (patch)
treec17d387e900669c6c438a983cfee7c697e21b516
parent7211012c4f1a737a78436a55fd1c66d7e323b668 (diff)
Fix import_scene_from_other_importer and import_animation_from_other_importer
-rw-r--r--editor/import/resource_importer_scene.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/import/resource_importer_scene.cpp b/editor/import/resource_importer_scene.cpp
index 11639314d6..9aaffe8abf 100644
--- a/editor/import/resource_importer_scene.cpp
+++ b/editor/import/resource_importer_scene.cpp
@@ -1462,7 +1462,7 @@ Node *ResourceImporterScene::import_scene_from_other_importer(EditorSceneFormatI
for (const String &F : extensions) {
if (F.to_lower() == ext) {
- importer = E;
+ importer = E->get();
break;
}
}
@@ -1492,7 +1492,7 @@ Ref<Animation> ResourceImporterScene::import_animation_from_other_importer(Edito
for (const String &F : extensions) {
if (F.to_lower() == ext) {
- importer = E;
+ importer = E->get();
break;
}
}