Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2006-11-27 00:17:15 +0300
committerTon Roosendaal <ton@blender.org>2006-11-27 00:17:15 +0300
commit0cd62a9298663999fb567c1e8bd6384a5105f425 (patch)
treef277433ac2400bea69afc1d6dc0988f1647804fb /source/blender/makesdna/DNA_fileglobal_types.h
parentb36bafe524a8a792fe0ea72f46ead9d193fd1ee2 (diff)
NEW! Subversion control and test for future Blender binaries.
Next to the release code, a subversion number is written in the file now. This is in the chunk GLOB, which is now in beginning of file. Subversions can be used to have finer control over do_versions(), so you don't have to wait for a release to patch stuff nicely. We can also increase these subversions regularly to denote important changes. If a subversion is not 0, it's being printed in the header, so a user can also verify the state. (We might even tag cvs for it?). Next to this, a minimum version and subversion number are written too. From now on, if you change files in a way a past binary cannot read this nicely anymore, you should set these minima to the current version. This was especially added for the new mesh layers, which will not work for older binaries once we make 2.43.
Diffstat (limited to 'source/blender/makesdna/DNA_fileglobal_types.h')
-rw-r--r--source/blender/makesdna/DNA_fileglobal_types.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_fileglobal_types.h b/source/blender/makesdna/DNA_fileglobal_types.h
index b06f3f3e372..8a4d773d68b 100644
--- a/source/blender/makesdna/DNA_fileglobal_types.h
+++ b/source/blender/makesdna/DNA_fileglobal_types.h
@@ -45,7 +45,16 @@ typedef struct FileGlobal {
int fileflags;
int globalf;
int pad;
+ short subversion, pads;
+ short minversion, minsubversion;
} FileGlobal;
+
+/* minversion: in file, the oldest past blender version you can use compliant */
+/* example: if in 2.43 the meshes lose mesh data, minversion is 2.43 then too */
+/* or: in 2.42, subversion 1, same as above, minversion then is 2.42, min subversion 1 */
+/* (defines for version are in the BKE_blender.h file, for historic reasons) */
+
+
#endif