From 15d39eaac12c0837f51abdb2041b306b8e9e0d26 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 4 Sep 2014 21:48:36 +1000 Subject: Write Compressed blend files directly Writing compressed files would write the uncompressed blend, then re-compress on-disk. Use a wrapper for open/write/close commands --- source/blender/blenlib/intern/fileops.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/blender/blenlib/intern') diff --git a/source/blender/blenlib/intern/fileops.c b/source/blender/blenlib/intern/fileops.c index 0893c3e380f..f6bbd3273f9 100644 --- a/source/blender/blenlib/intern/fileops.c +++ b/source/blender/blenlib/intern/fileops.c @@ -66,7 +66,7 @@ #include "BLI_fileops.h" #include "BLI_sys_types.h" // for intptr_t support - +#if 0 /* UNUSED */ /* gzip the file in from and write it to "to". * return -1 if zlib fails, -2 if the originating file does not exist * note: will remove the "from" file @@ -111,6 +111,7 @@ int BLI_file_gzip(const char *from, const char *to) return rval; } +#endif /* gzip the file in from_file and write it to memory to_mem, at most size bytes. * return the unziped size -- cgit v1.2.3