Merge pull request #96079 from adamscott/relative-import-script-path
Add import tab `import_script/path` relative path support
This commit is contained in:
commit
ac4410ce34
1 changed files with 4 additions and 0 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Reference in a new issue