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:
authorCampbell Barton <ideasman42@gmail.com>2018-06-02 15:53:07 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-06-02 15:53:07 +0300
commit0de0cee9a28185bf0d8ac31a15920f93537a16f3 (patch)
tree32b66b5ece15b444bab4181083dd96d003b33e62 /source/creator/creator.c
parent9cd2e4fa3fd5b85c50bf766ee32f1a0328badae1 (diff)
Fix crash running in background mode
Diffstat (limited to 'source/creator/creator.c')
-rw-r--r--source/creator/creator.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/creator/creator.c b/source/creator/creator.c
index 77afdf17e68..c2fd990f451 100644
--- a/source/creator/creator.c
+++ b/source/creator/creator.c
@@ -459,7 +459,9 @@ int main(
WM_keymap_init(C);
/* Called on load, however Python is not yet initialized, so call again here. */
- WM_toolsystem_init(C);
+ if (!G.background) {
+ WM_toolsystem_init(C);
+ }
#ifdef WITH_FREESTYLE
/* initialize Freestyle */