summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-12-17 22:24:34 +0100
committerGitHub <noreply@github.com>2019-12-17 22:24:34 +0100
commit7d34d1a85f95edd1b29b8eb24cda49b355db2c3d (patch)
tree3ac738a2ad0bc8fb253c225920c976579fbfb587 /editor
parent98e540616e59098f5a59899f19135d46307b8b90 (diff)
parentb2a14042d52b45ae0554f4146c700b18f50ee92f (diff)
Merge pull request #34348 from Catchawink/master
Fixed issues with using a relative path in the export window.
Diffstat (limited to 'editor')
-rw-r--r--editor/editor_file_dialog.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/editor_file_dialog.cpp b/editor/editor_file_dialog.cpp
index 7fc989b5e9..03da065658 100644
--- a/editor/editor_file_dialog.cpp
+++ b/editor/editor_file_dialog.cpp
@@ -958,6 +958,8 @@ String EditorFileDialog::get_current_path() const {
}
void EditorFileDialog::set_current_dir(const String &p_dir) {
+ if (p_dir.is_rel_path())
+ dir_access->change_dir(OS::get_singleton()->get_resource_dir());
dir_access->change_dir(p_dir);
update_dir();
invalidate();