reuse USER_SAVE_PREVIEWS to not save thumbnails into blend file header

This commit is contained in:
Campbell Barton 2011-07-13 19:16:25 +00:00
parent 1fd33b6e77
commit c3fcd6c4c7

@ -725,8 +725,10 @@ int WM_write_file(bContext *C, const char *target, int fileflags, ReportList *re
/* 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 */