diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-04-08 18:39:16 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-04-08 18:39:16 +0400 |
commit | d8b2b388a7b51e1585c39a1771bbd6494455e25d (patch) | |
tree | ad78116d714df2958e452926eab254b7c2bec582 /source/creator | |
parent | eedce6b32244a60f90cb4e9d73237adca936ea8a (diff) |
bugfix [#21812] Crash with -b -P on blend files saved with older blender versions.
from Elia Sarti
Diffstat (limited to 'source/creator')
-rw-r--r-- | source/creator/creator.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/creator/creator.c b/source/creator/creator.c index 185c98c3f44..46c0376c02a 100644 --- a/source/creator/creator.c +++ b/source/creator/creator.c @@ -838,9 +838,11 @@ static int load_file(int argc, char **argv, void *data) /*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))*/ |