diff options
author | Juan Linietsky <reduzio@gmail.com> | 2015-04-18 16:33:31 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2015-04-18 16:33:31 -0300 |
commit | a5cbfbbcbbc8bc2dabc7ab166c09d116861f3cfd (patch) | |
tree | 41084fb9fdd29c12f2e6f3f52412cb24fd7dfb69 /core/io/resource_format_binary.cpp | |
parent | 170a9349d2f1b07d4562ac0992a0da59b9a28088 (diff) | |
download | redot-engine-a5cbfbbcbbc8bc2dabc7ab166c09d116861f3cfd.tar.gz |
-fixed relative path saving to file, fixes #1694
Diffstat (limited to 'core/io/resource_format_binary.cpp')
-rw-r--r-- | core/io/resource_format_binary.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/io/resource_format_binary.cpp b/core/io/resource_format_binary.cpp index f5ef402194..3d7d2f2367 100644 --- a/core/io/resource_format_binary.cpp +++ b/core/io/resource_format_binary.cpp @@ -390,7 +390,7 @@ Error ResourceInteractiveLoaderBinary::parse_variant(Variant& r_v) { if (path.find("://")==-1 && path.is_rel_path()) { // path is relative to file being loaded, so convert to a resource path - path=Globals::get_singleton()->localize_path(res_path.get_base_dir()+"/"+path); + path=Globals::get_singleton()->localize_path(res_path.get_base_dir().plus_file(path)); } |