You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 19:41:11 +00:00
Merge pull request #93284 from rune-scape/missing-import-settings-crash
Avoid crashing when scene import settings are empty
This commit is contained in:
@@ -2806,6 +2806,7 @@ Node *ResourceImporterScene::pre_import(const String &p_source_file, const HashM
|
||||
}
|
||||
|
||||
ERR_FAIL_COND_V(!importer.is_valid(), nullptr);
|
||||
ERR_FAIL_COND_V(p_options.is_empty(), nullptr);
|
||||
|
||||
Error err = OK;
|
||||
|
||||
@@ -2864,6 +2865,7 @@ Error ResourceImporterScene::import(const String &p_source_file, const String &p
|
||||
}
|
||||
|
||||
ERR_FAIL_COND_V(!importer.is_valid(), ERR_FILE_UNRECOGNIZED);
|
||||
ERR_FAIL_COND_V(p_options.is_empty(), ERR_BUG);
|
||||
|
||||
int import_flags = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user