diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-02-12 01:29:18 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-02-12 01:38:46 +0300 |
commit | 3ec4c2f842841ca0d0f51694dc3e88dfe22195b1 (patch) | |
tree | 7fca8a48b2acd11529b2983edee13a794fa3ed07 /source/blender/makesdna/DNA_fileglobal_types.h | |
parent | 2a6d03493c9dbf9cc142ef1cdeb191e3929081d1 (diff) |
DNA: support versioning structs & struct members
This is only to be used rarely because it's not forwards compatible.
Replace version patching of old 2.80 DNA with a more generic API.
Diffstat (limited to 'source/blender/makesdna/DNA_fileglobal_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_fileglobal_types.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_fileglobal_types.h b/source/blender/makesdna/DNA_fileglobal_types.h index c5833fc3790..52fbdbc22b2 100644 --- a/source/blender/makesdna/DNA_fileglobal_types.h +++ b/source/blender/makesdna/DNA_fileglobal_types.h @@ -28,8 +28,9 @@ * the moment of saving, and the file-specific settings. */ typedef struct FileGlobal { - /** Needs to be here, for human fileformat recognition. */ + /** Needs to be here, for human fileformat recognition (keep first!). */ char subvstr[4]; + short subversion; short minversion, minsubversion; char pad[6]; |