From 8db565cabddefdfa59d37c7d9dfa86661d0170ed Mon Sep 17 00:00:00 2001 From: Gordon MacPherson Date: Tue, 23 Mar 2021 23:46:22 +0000 Subject: [PATCH] Fix use of Error its uninitialised and resolves importers being broken --- editor/import/resource_importer_scene.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/import/resource_importer_scene.cpp b/editor/import/resource_importer_scene.cpp index c6ef9b61d74..3abdc5a3284 100644 --- a/editor/import/resource_importer_scene.cpp +++ b/editor/import/resource_importer_scene.cpp @@ -1302,7 +1302,7 @@ Node *ResourceImporterScene::pre_import(const String &p_source_file) { ERR_FAIL_COND_V(!importer.is_valid(), nullptr); - Error err; + Error err = OK; Node *scene = importer->import_scene(p_source_file, EditorSceneImporter::IMPORT_ANIMATION | EditorSceneImporter::IMPORT_GENERATE_TANGENT_ARRAYS, 15, nullptr, &err); if (!scene || err != OK) { return nullptr;