Revision: 28094
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=28094
Author:   campbellbarton
Date:     2010-04-08 16:39:16 +0200 (Thu, 08 Apr 2010)

Log Message:
-----------
bugfix [#21812] Crash with -b -P on blend files saved with older blender 
versions.
from Elia Sarti

Modified Paths:
--------------
    trunk/blender/source/creator/creator.c

Modified: trunk/blender/source/creator/creator.c
===================================================================
--- trunk/blender/source/creator/creator.c      2010-04-08 13:12:53 UTC (rev 
28093)
+++ trunk/blender/source/creator/creator.c      2010-04-08 14:39:16 UTC (rev 
28094)
@@ -838,9 +838,11 @@
                /*we successfully loaded a blend file, get sure that
                pointcache works */
                if (retval!=0) {
+                       wmWindowManager *wm= CTX_wm_manager(C);
                        CTX_wm_manager_set(C, NULL); /* remove wm to force 
check */
                        WM_check(C);
                        G.relbase_valid = 1;
+                       if (CTX_wm_manager(C) == NULL) CTX_wm_manager_set(C, 
wm); /* reset wm */
                }
 
                /* happens for the UI on file reading too (huh? (ton))*/


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

Reply via email to