mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
Fix use of Error its uninitialised and resolves importers being broken
This commit is contained in:
parent
1829eb4608
commit
8db565cabd
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user