Blender Git Loki
Git Commits -> Revision c61e25e
Revision c61e25e by Campbell Barton (master) May 24, 2010, 21:52 (GMT) |
blend file thumbnailing - uses same thumbnail system as image browser - blend files show thumbnails in ubuntu/gnome (freedesktop spec) - 128x128 images are embedded into the blend file header, a simple loader avoids reading the entire blend file to extract it when generating thumbnails in the file selector. When the image browser reads a directory it loads images and creates thumbnails, blend files embedded images are treated just like loading an image. - the thumbnail is created from the camera view in solid mode. (no camera == no thumbnal). - readfile/writefile.c: had to use the 'TEST' code name to save thumbnails, anything else would segfault older blender versions on load. (its not used elsewhere). |
Commit Details:
Full Hash: c61e25e6ac37296c13c0949b8363cc168125d750
SVN Revision: 28968
Parent Commit: 3332b2b
Lines Changed: +230, -27
1 Added Path:
/source/blender/imbuf/intern/thumbs_blend.c (+122, -0) (View)
9 Modified Paths:
/source/blender/blenkernel/BKE_utildefines.h (+1, -1) (Diff)
/source/blender/blenkernel/intern/blender.c (+1, -1) (Diff)
/source/blender/blenloader/BLO_writefile.h (+3, -1) (Diff)
/source/blender/blenloader/intern/readfile.c (+1, -1) (Diff)
/source/blender/blenloader/intern/writefile.c (+18, -6) (Diff)
/source/blender/editors/space_file/filelist.c (+4, -2) (Diff)
/source/blender/imbuf/IMB_thumbs.h (+5, -2) (Diff)
/source/blender/imbuf/intern/thumbs.c (+17, -8) (Diff)
/source/blender/windowmanager/intern/wm_files.c (+58, -5) (Diff)
/source/blender/blenkernel/intern/blender.c (+1, -1) (Diff)
/source/blender/blenloader/BLO_writefile.h (+3, -1) (Diff)
/source/blender/blenloader/intern/readfile.c (+1, -1) (Diff)
/source/blender/blenloader/intern/writefile.c (+18, -6) (Diff)
/source/blender/editors/space_file/filelist.c (+4, -2) (Diff)
/source/blender/imbuf/IMB_thumbs.h (+5, -2) (Diff)
/source/blender/imbuf/intern/thumbs.c (+17, -8) (Diff)
/source/blender/windowmanager/intern/wm_files.c (+58, -5) (Diff)