Fix crash running in background mode

This commit is contained in:
Campbell Barton 2018-06-02 14:53:07 +02:00
parent 9cd2e4fa3f
commit 0de0cee9a2
1 changed files with 3 additions and 1 deletions

View File

@ -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 */