summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2018-04-07 16:56:02 -0300
committerGitHub <noreply@github.com>2018-04-07 16:56:02 -0300
commit5a1a90c3db82f286567ce1946f5c282c30dc7fcb (patch)
treea7d51ef441bda9ba22c072a87c849d1ea25743c4
parentfdfbff3cefe2e1dad0ac6d28d048af3c703d9a85 (diff)
parent31c6d6649f64b757848ad6e9f382709df3e164d7 (diff)
Merge pull request #17636 from rainerdeyke/fix_issue_17585
Fixes moving files causes scene corruption
-rw-r--r--core/io/resource_format_binary.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/core/io/resource_format_binary.cpp b/core/io/resource_format_binary.cpp
index 5dfe067902..0c626c197b 100644
--- a/core/io/resource_format_binary.cpp
+++ b/core/io/resource_format_binary.cpp
@@ -1162,9 +1162,11 @@ Error ResourceFormatLoaderBinary::rename_dependencies(const String &p_path, cons
ERR_FAIL_V(ERR_FILE_UNRECOGNIZED);
}
- fw->store_32(VERSION_MAJOR); //current version
- fw->store_32(VERSION_MINOR);
- fw->store_32(FORMAT_VERSION);
+ // Since we're not actually converting the file contents, leave the version
+ // numbers in the file untouched.
+ fw->store_32(ver_major);
+ fw->store_32(ver_minor);
+ fw->store_32(ver_format);
save_ustring(fw, get_ustring(f)); //type