Blender Git Loki
Git Commits -> Revision 610a3e2
Revision 610a3e2 by Grigory Revzin (soc-2014-shapekey) June 13, 2014, 23:42 (GMT) |
Implemented mesh shape key compression Mesh shape keys are now compressed on file write by storing only the vertices that have changed from the rest position (the logic automatically determines if there will be a gain from such compression, if not, no compression will happen). This showed 3x disk space reduction on Elizabeth's head here (4.5 kvert mesh, 157 shape keys for different facial expression): http://dl.dropboxusercontent.com/u/91422001/liz_headonly_masterbranch.blend http://cs617325.vk.me/v617325382/e0e1/cjnMXhbtU44.jpg A User Preference (on File tab) has been added to save the shape keys in the old format (compressed shape keys won't be readable from Master branch) This also decreases object mode undo memory usage, as undo uses a file in memory. TODO: endian conversions won't work on compressed keys right now. |
Commit Details:
Full Hash: 610a3e288e9dd502dc0eb73c528e05eba9a9ea40
Parent Commit: b01c944
Lines Changed: +141, -10
6 Modified Paths:
/release/scripts/startup/bl_ui/space_userpref.py (+1, -0) (Diff)
/source/blender/blenloader/intern/readfile.c (+36, -1) (Diff)
/source/blender/blenloader/intern/writefile.c (+88, -8) (Diff)
/source/blender/makesdna/DNA_key_types.h (+11, -1) (Diff)
/source/blender/makesdna/DNA_userdef_types.h (+1, -0) (Diff)
/source/blender/makesrna/intern/rna_userdef.c (+4, -0) (Diff)
/source/blender/blenloader/intern/readfile.c (+36, -1) (Diff)
/source/blender/blenloader/intern/writefile.c (+88, -8) (Diff)
/source/blender/makesdna/DNA_key_types.h (+11, -1) (Diff)
/source/blender/makesdna/DNA_userdef_types.h (+1, -0) (Diff)
/source/blender/makesrna/intern/rna_userdef.c (+4, -0) (Diff)