Revision: 38373
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=38373
Author:   campbellbarton
Date:     2011-07-13 19:16:25 +0000 (Wed, 13 Jul 2011)
Log Message:
-----------
reuse USER_SAVE_PREVIEWS to not save thumbnails into blend file header

Modified Paths:
--------------
    trunk/blender/source/blender/windowmanager/intern/wm_files.c

Modified: trunk/blender/source/blender/windowmanager/intern/wm_files.c
===================================================================
--- trunk/blender/source/blender/windowmanager/intern/wm_files.c        
2011-07-13 18:40:21 UTC (rev 38372)
+++ trunk/blender/source/blender/windowmanager/intern/wm_files.c        
2011-07-13 19:16:25 UTC (rev 38373)
@@ -725,8 +725,10 @@
 
        /* blend file thumbnail */
        /* save before exit_editmode, otherwise derivedmeshes for shared data 
corrupt #27765) */
-       ibuf_thumb= blend_file_thumb(CTX_data_scene(C), &thumb);
-       
+       if(U.flag & USER_SAVE_PREVIEWS) {
+               ibuf_thumb= blend_file_thumb(CTX_data_scene(C), &thumb);
+       }
+
        BLI_exec_cb(G.main, NULL, BLI_CB_EVT_SAVE_PRE);
 
        /* operator now handles overwrite checks */

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to