[Bf-blender-cvs] [cfc3adc] soc-2014-shapekey: Fixed a bug in keyblock compression

Grigory Revzin noreply at git.blender.org
Fri Jul 25 11:59:41 CEST 2014


Commit: cfc3adc80ba8c7369a012b42b1180dfb60abe497
Author: Grigory Revzin
Date:   Fri Jul 25 13:57:17 2014 +0400
Branches: soc-2014-shapekey
https://developer.blender.org/rBcfc3adc80ba8c7369a012b42b1180dfb60abe497

Fixed a bug in keyblock compression

If the file was saved with compression and then saved over with Legacy
Keyblocks option, the compress flag was never cleared and file failed to
load.

===================================================================

M	source/blender/blenloader/intern/writefile.c

===================================================================

diff --git a/source/blender/blenloader/intern/writefile.c b/source/blender/blenloader/intern/writefile.c
index 8d0dc54..dc18c17 100644
--- a/source/blender/blenloader/intern/writefile.c
+++ b/source/blender/blenloader/intern/writefile.c
@@ -1700,6 +1700,7 @@ static void write_keys(WriteData *wd, ListBase *idbase)
 				/* direct */
 				kb = key->block.first;
 				while (kb) {
+					kb->compressed = 0;
 					writestruct(wd, DATA, "KeyBlock", 1, kb);
 					if (kb->data) writedata(wd, DATA, kb->totelem * key->elemsize, kb->data);
 					kb = kb->next;




More information about the Bf-blender-cvs mailing list