Fixed issues with using a relative path in the export window.
Before this fix, opening relative export paths inside of an EditorFileDialog was not possible. This was fixed by modifying String::path_to_file() to save relative paths in EditorExportPreset::set_export_path() more appropriately and changing EditorFileDialog::set_current_dir() to open relative paths.
This commit is contained in:
parent
3a9284b562
commit
b2a14042d5
2 changed files with 4 additions and 1 deletions
|
|
@ -3792,7 +3792,8 @@ bool String::is_valid_float() const {
|
|||
|
||||
String String::path_to_file(const String &p_path) const {
|
||||
|
||||
String src = this->replace("\\", "/").get_base_dir();
|
||||
// Don't get base dir for src, this is expected to be a dir already.
|
||||
String src = this->replace("\\", "/");
|
||||
String dst = p_path.replace("\\", "/").get_base_dir();
|
||||
String rel = src.path_to(dst);
|
||||
if (rel == dst) // failed
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue