1
0
Fork 0

Merge pull request #102213 from KoBeWi/ensure_path_ensures_less_bugs_I_guess

Fix save path validation for imported scenes
This commit is contained in:
Thaddeus Crews 2025-01-31 09:15:43 -06:00
commit 4f56d0d0d9
No known key found for this signature in database
GPG Key ID: 62181B86FE9E5D84
1 changed files with 1 additions and 2 deletions

View File

@ -2877,8 +2877,7 @@ Error ResourceImporterScene::_check_resource_save_paths(const Dictionary &p_data
const Dictionary &settings = p_data[keys[i]];
if (bool(settings.get("save_to_file/enabled", false)) && settings.has("save_to_file/path")) {
const String &save_path = settings["save_to_file/path"];
const String save_path = ResourceUID::ensure_path(settings["save_to_file/path"]);
ERR_FAIL_COND_V(!save_path.is_empty() && !DirAccess::exists(save_path.get_base_dir()), ERR_FILE_BAD_PATH);
}
}