From 3ec4c2f842841ca0d0f51694dc3e88dfe22195b1 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 12 Feb 2019 09:29:18 +1100 Subject: 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. --- source/blender/makesdna/DNA_fileglobal_types.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/blender/makesdna/DNA_fileglobal_types.h') 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]; -- cgit v1.2.3