[Bf-blender-cvs] [cda149b] master: Remove 'ensure previews' call from write code.

Bastien Montagne noreply at git.blender.org
Wed Jan 7 19:40:42 CET 2015


Commit: cda149b9c8b82d200d190e1a362008ce20742cff
Author: Bastien Montagne
Date:   Wed Jan 7 19:30:12 2015 +0100
Branches: master
https://developer.blender.org/rBcda149b9c8b82d200d190e1a362008ce20742cff

Remove 'ensure previews' call from write code.

Sorry about that, should have checked this stuff more, with Internal material
renders are very fast (unoticable), but with Cycles it can take (a lot of) time,
like several minutes or more.

Will probably fall back to a dedicated operator users will have to fire themselves
when they want previews in their files.

===================================================================

M	source/blender/windowmanager/intern/wm_files.c

===================================================================

diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c
index 4dfe157..d97537c 100644
--- a/source/blender/windowmanager/intern/wm_files.c
+++ b/source/blender/windowmanager/intern/wm_files.c
@@ -957,8 +957,6 @@ int wm_file_write(bContext *C, const char *filepath, int fileflags, ReportList *
 	/* save before exit_editmode, otherwise derivedmeshes for shared data corrupt #27765) */
 	if ((U.flag & USER_SAVE_PREVIEWS) && BLI_thread_is_main()) {
 		ibuf_thumb = blend_file_thumb(CTX_data_scene(C), CTX_wm_screen(C), &thumb);
-
-		wm_ensure_previews(C, G.main);
 	}
 
 	BLI_callback_exec(G.main, NULL, BLI_CB_EVT_SAVE_PRE);




More information about the Bf-blender-cvs mailing list