mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Allow passing UID to importer
This helps, for importers spitting out new resources to the res:// filesystem to actually hash them to generate deterministic UIDs. This PR also fixes the determinism for translations.
This commit is contained in:
parent
0f5f3bc954
commit
fe34c45d2a
38 changed files with 54 additions and 41 deletions
|
|
@ -163,7 +163,7 @@ bool EditorImportPlugin::get_option_visibility(const String &p_path, const Strin
|
|||
ERR_FAIL_V_MSG(false, "Unimplemented _get_option_visibility in add-on.");
|
||||
}
|
||||
|
||||
Error EditorImportPlugin::import(const String &p_source_file, const String &p_save_path, const HashMap<StringName, Variant> &p_options, List<String> *r_platform_variants, List<String> *r_gen_files, Variant *r_metadata) {
|
||||
Error EditorImportPlugin::import(ResourceUID::ID p_source_id, const String &p_source_file, const String &p_save_path, const HashMap<StringName, Variant> &p_options, List<String> *r_platform_variants, List<String> *r_gen_files, Variant *r_metadata) {
|
||||
Dictionary options;
|
||||
TypedArray<String> platform_variants, gen_files;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue