Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-07-13 23:16:25 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-07-13 23:16:25 +0400
commitc3fcd6c4c7ec1aebff5bd386328023010d9c48d5 (patch)
tree6db3afff64746e735c1985e5bd23afe8eed8cca2 /source/blender/windowmanager
parent1fd33b6e777d54a3702e58253dabf94a752783e2 (diff)
reuse USER_SAVE_PREVIEWS to not save thumbnails into blend file header
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r--source/blender/windowmanager/intern/wm_files.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c
index aabaf6d4055..27fc0caeccc 100644
--- a/source/blender/windowmanager/intern/wm_files.c
+++ b/source/blender/windowmanager/intern/wm_files.c
@@ -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 */