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:
Diffstat (limited to 'source/creator/creator.c')
-rw-r--r--source/creator/creator.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/creator/creator.c b/source/creator/creator.c
index b4158483cef..9569816e125 100644
--- a/source/creator/creator.c
+++ b/source/creator/creator.c
@@ -50,6 +50,7 @@
#endif
#include "BLI_args.h"
+#include "BLI_threads.h"
#include "GEN_messaging.h"
@@ -840,9 +841,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))*/
@@ -964,6 +967,8 @@ int main(int argc, char **argv)
strip_quotes(build_type);
#endif
+ BLI_threadapi_init();
+
RNA_init();
RE_engines_init();