Revision: 37810
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=37810
Author:   ton
Date:     2011-06-25 15:54:20 +0000 (Sat, 25 Jun 2011)
Log Message:
-----------
Bugfix #27765

Thumbnail save for .blend crashed, when being in editmode for a mesh
that has other object users as well. Derivedmesh confusement...

Thanks to Sergey for finding the cause!

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-06-25 14:10:46 UTC (rev 37809)
+++ trunk/blender/source/blender/windowmanager/intern/wm_files.c        
2011-06-25 15:54:20 UTC (rev 37810)
@@ -722,6 +722,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);
+       
        BLI_exec_cb(G.main, NULL, BLI_CB_EVT_SAVE_PRE);
 
        /* operator now handles overwrite checks */
@@ -736,9 +740,6 @@
        /* don't forget not to return without! */
        WM_cursor_wait(1);
        
-       /* blend file thumbnail */
-       ibuf_thumb= blend_file_thumb(CTX_data_scene(C), &thumb);
-
        fileflags |= G_FILE_HISTORY; /* write file history */
 
        if (BLO_write_file(CTX_data_main(C), filepath, fileflags, reports, 
thumb)) {

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

Reply via email to