diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-12-17 22:24:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-17 22:24:34 +0100 |
commit | 7d34d1a85f95edd1b29b8eb24cda49b355db2c3d (patch) | |
tree | 3ac738a2ad0bc8fb253c225920c976579fbfb587 /core | |
parent | 98e540616e59098f5a59899f19135d46307b8b90 (diff) | |
parent | b2a14042d52b45ae0554f4146c700b18f50ee92f (diff) |
Merge pull request #34348 from Catchawink/master
Fixed issues with using a relative path in the export window.
Diffstat (limited to 'core')
-rw-r--r-- | core/ustring.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/ustring.cpp b/core/ustring.cpp index 6a1dc2295f..345db0eb13 100644 --- a/core/ustring.cpp +++ b/core/ustring.cpp @@ -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 |