Merge pull request #96079 from adamscott/relative-import-script-path

Add import tab `import_script/path` relative path support
This commit is contained in:
Rémi Verschelde 2024-08-25 22:24:28 +02:00
commit ac4410ce34
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -3058,6 +3058,10 @@ Error ResourceImporterScene::import(const String &p_source_file, const String &p
progress.step(TTR("Running Custom Script..."), 2);
String post_import_script_path = p_options["import_script/path"];
if (post_import_script_path.is_relative_path()) {
post_import_script_path = p_source_file.get_base_dir().path_join(post_import_script_path);
}
Ref<EditorScenePostImport> post_import_script;
if (!post_import_script_path.is_empty()) {