Skip to content

Commit 4f56d0d

Browse files
committed
Merge pull request #102213 from KoBeWi/ensure_path_ensures_less_bugs_I_guess
Fix save path validation for imported scenes
2 parents fe77e5e + 06b2c9f commit 4f56d0d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

editor/import/3d/resource_importer_scene.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -2877,8 +2877,7 @@ Error ResourceImporterScene::_check_resource_save_paths(const Dictionary &p_data
28772877
const Dictionary &settings = p_data[keys[i]];
28782878

28792879
if (bool(settings.get("save_to_file/enabled", false)) && settings.has("save_to_file/path")) {
2880-
const String &save_path = settings["save_to_file/path"];
2881-
2880+
const String save_path = ResourceUID::ensure_path(settings["save_to_file/path"]);
28822881
ERR_FAIL_COND_V(!save_path.is_empty() && !DirAccess::exists(save_path.get_base_dir()), ERR_FILE_BAD_PATH);
28832882
}
28842883
}

0 commit comments

Comments
 (0)