summaryrefslogtreecommitdiffstats
path: root/editor/import/3d/resource_importer_scene.cpp
diff options
context:
space:
mode:
authorJuan <reduzio@gmail.com>2024-09-23 16:07:40 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-11-11 15:22:42 +0100
commitfe34c45d2af3157ce1dbe65fd8b624851109a02d (patch)
treefbd3716133fea764a8ec9e04a2df0474027aa94f /editor/import/3d/resource_importer_scene.cpp
parent0f5f3bc9546b46b2029fc8896dc859697f1eab97 (diff)
downloadredot-engine-fe34c45d2af3157ce1dbe65fd8b624851109a02d.tar.gz
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.
Diffstat (limited to 'editor/import/3d/resource_importer_scene.cpp')
-rw-r--r--editor/import/3d/resource_importer_scene.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/import/3d/resource_importer_scene.cpp b/editor/import/3d/resource_importer_scene.cpp
index edf7aa66f0..2db478a75b 100644
--- a/editor/import/3d/resource_importer_scene.cpp
+++ b/editor/import/3d/resource_importer_scene.cpp
@@ -2872,7 +2872,7 @@ Error ResourceImporterScene::_check_resource_save_paths(const Dictionary &p_data
return OK;
}
-Error ResourceImporterScene::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 ResourceImporterScene::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) {
const String &src_path = p_source_file;
Ref<EditorSceneFormatImporter> importer;