[Bf-blender-cvs] [0de0cee9a28] blender2.8: Fix crash running in background mode
Campbell Barton
noreply at git.blender.org
Sat Jun 2 14:55:30 CEST 2018
Commit: 0de0cee9a28185bf0d8ac31a15920f93537a16f3
Author: Campbell Barton
Date: Sat Jun 2 14:53:07 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB0de0cee9a28185bf0d8ac31a15920f93537a16f3
Fix crash running in background mode
===================================================================
M source/creator/creator.c
===================================================================
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 */
More information about the Bf-blender-cvs
mailing list