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 13:43:00 +0300
committerTon Roosendaal <ton@blender.org>2006-11-27 13:43:00 +0300
commitd7addfb99a7f5f61a4a174298de2d9e3fe87546c (patch)
tree84329266ba8ae35782f4645751e739f102f96429 /source/blender/makesdna/DNA_fileglobal_types.h
parentd7750932c40b1e0c3a62310820a8f7ad9ed0c93e (diff)
Stupid me! I was calling the subversion warning test *after* memory got
freed. Windows nicely crashes then. Also: added human readable string in fileglobal, so you can check the subversion in a file manually too. Rule: - Find GLOB chunk (first chunk after REND now) - skip sizeof BHead, 20 bytes in 32bits, or 24 in 64 bits - there's 4 characters showing subversion, right now it reads " 1".
Diffstat (limited to 'source/blender/makesdna/DNA_fileglobal_types.h')
-rw-r--r--source/blender/makesdna/DNA_fileglobal_types.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/makesdna/DNA_fileglobal_types.h b/source/blender/makesdna/DNA_fileglobal_types.h
index 8a4d773d68b..1aecf4da017 100644
--- a/source/blender/makesdna/DNA_fileglobal_types.h
+++ b/source/blender/makesdna/DNA_fileglobal_types.h
@@ -39,14 +39,14 @@
* the moment of saving, and the file-specific settings.
*/
typedef struct FileGlobal {
+ char subvstr[4]; /* needs to be here, for human fileformat recognition */
+ short subversion, pads;
+ short minversion, minsubversion;
+ short displaymode, winpos;
void *curscreen;
void *curscene;
- short displaymode, winpos;
int fileflags;
int globalf;
- int pad;
- short subversion, pads;
- short minversion, minsubversion;
} FileGlobal;