Blender Git Commit Log

Git Commits -> Revision 0621a8e

Revision 0621a8e by Brecht Van Lommel (master)
January 29, 2010, 11:26 (GMT)
Fix for lack of basic error checking in writing compressed .blend files
(which is enabled by default). If there was a problem reading or writing
in the compression process, the original .blend file could get lost. Now
errors are checked, and writing is done as follows:

write .blend@ -> compress .blend@ to [email protected] ->
rename [email protected] to .blend -> remove .blend@

We've had blender crash here, lose the original .blend and leave an
empty .blend@. It is not clear to me where this would happen in practice
if there is enough disk space and permissions are correct, so the actual
crash is likely not fixed by this commit.

Commit Details:

Full Hash: 0621a8e08a6b0130b8f51782f4b75b2fe6a299da
SVN Revision: 26394
Parent Commit: 014a24f
Lines Changed: +51, -27

2 Modified Paths:

/source/blender/blenlib/intern/fileops.c (+23, -13) (Diff)
/source/blender/blenloader/intern/writefile.c (+28, -14) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021