From 0de0cee9a28185bf0d8ac31a15920f93537a16f3 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 2 Jun 2018 14:53:07 +0200 Subject: [PATCH] Fix crash running in background mode --- source/creator/creator.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 */