diff options
author | Ton Roosendaal <ton@blender.org> | 2003-07-21 23:41:07 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2003-07-21 23:41:07 +0400 |
commit | aa9f2a57339a0382404474a2985a69120c96f80d (patch) | |
tree | 54a9979fb61d57479c609b862cb47f74380fa926 /source/blender/blenloader | |
parent | 85d043ffef12626be235ba5442bbe8cccec2f8eb (diff) |
- saves the 'draw faces' flag in a file, in fact the entire G.f flag.
WARN: this recompiles other stuff too, outside of the loader. be sure
to 'make' in source/blender/ or a higher dir.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/BLO_readfile.h | 1 | ||||
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 3 | ||||
-rw-r--r-- | source/blender/blenloader/intern/writefile.c | 1 |
3 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/blenloader/BLO_readfile.h b/source/blender/blenloader/BLO_readfile.h index c664f7f5354..48f9886c61c 100644 --- a/source/blender/blenloader/BLO_readfile.h +++ b/source/blender/blenloader/BLO_readfile.h @@ -82,6 +82,7 @@ typedef struct BlendFileData { int winpos; int fileflags; int displaymode; + int globalf; struct bScreen* curscreen; struct Scene* curscene; diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index ec051b0ec22..26a6a05374f 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -2791,10 +2791,11 @@ static BHead *read_libblock(FileData *fd, Main *main, BHead *bhead, int flag, ID static void link_global(FileData *fd, BlendFileData *bfd, FileGlobal *fg) { + // this is nonsense... will get rid of it once (ton) bfd->winpos= fg->winpos; bfd->fileflags= fg->fileflags; bfd->displaymode= fg->displaymode; - + bfd->globalf= fg->globalf; bfd->curscreen= newlibadr(fd, 0, fg->curscreen); } diff --git a/source/blender/blenloader/intern/writefile.c b/source/blender/blenloader/intern/writefile.c index 9845899c7d9..bdbef708b90 100644 --- a/source/blender/blenloader/intern/writefile.c +++ b/source/blender/blenloader/intern/writefile.c @@ -1499,6 +1499,7 @@ static void write_global(WriteData *wd) fg.displaymode= R.displaymode; fg.winpos= R.winpos; fg.fileflags= G.fileflags; + fg.globalf= G.f; writestruct(wd, GLOB, "FileGlobal", 1, &fg); } |