diff options
author | Ton Roosendaal <ton@blender.org> | 2005-07-27 23:46:06 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2005-07-27 23:46:06 +0400 |
commit | 410512e2656007587cc1671c71c37cbc0b5bda4f (patch) | |
tree | 4c09eac0d6de21a38e0d355ea7cc71b46174cf81 /source/blender/blenlib/BLI_blenlib.h | |
parent | cd6cbda7dba939cec05b820e4a09ad0a5770d2b7 (diff) |
Patch provided by Shaul Kedem: Compressed files are back!
He even made a nice doc in wiki:
http://wiki.blender.org/bin/view.pl/Blenderdev/Blendgz
Usage: set the option "Compress File" in the main "File" pulldown menu.
This setting is a user-def, meaning it is not changed on reading files.
If you want it default, save it with CTRL+U.
The longest debate went over the file naming convention. Shaul started
with .blend.gz files, which gave issues in Blender because of the code
hanging out everywhere that detects blender files, and that appends the
.blend extension if needed.
Daniel Dunbar proposed to just save it as .blend, and not bother users
with such details. This is indeed the most elegant solution, with as
only drawback that old Blender executables cannot read it.
This drawback isn't very relevant at the moment, since we're heading
towards a release that isn't upward compatible anyway... the recode
going on on Meshes, Modfiers, Armatures, Poses, Actions, NLA already
have upward compatibility issues.
We might check - during the next month(s) - on a builtin system to
warn users in the future when we change things that make a file risky
to read in an older release.
Diffstat (limited to 'source/blender/blenlib/BLI_blenlib.h')
-rw-r--r-- | source/blender/blenlib/BLI_blenlib.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_blenlib.h b/source/blender/blenlib/BLI_blenlib.h index 167050d160a..2c11250c944 100644 --- a/source/blender/blenlib/BLI_blenlib.h +++ b/source/blender/blenlib/BLI_blenlib.h @@ -256,6 +256,7 @@ int BLI_backup(char *file, char *from, char *to); int BLI_exists(char *file); int BLI_copy_fileops(char *file, char *to); int BLI_rename(char *from, char *to); +int BLI_gzip(char *from, char *to); int BLI_delete(char *file, int dir, int recursive); int BLI_move(char *file, char *to); int BLI_touch(char *file); |