diff options
author | Mitchell Stokes <mogurijin@gmail.com> | 2013-01-05 07:30:56 +0400 |
---|---|---|
committer | Mitchell Stokes <mogurijin@gmail.com> | 2013-01-05 07:30:56 +0400 |
commit | d9001335ffd4c875b0bca7d36956b96012a34a1e (patch) | |
tree | 198ebd6a8caae87f69c5a26f136c590f346285de /source | |
parent | 52a81c8364c1da5d7607b6964d5e64d1cd00703a (diff) |
BGE: The Blenderplayer wasn't calling PyEval_InitThreads, which caused async lib loading to crash.
Diffstat (limited to 'source')
-rw-r--r-- | source/gameengine/Ketsji/KX_PythonInit.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/gameengine/Ketsji/KX_PythonInit.cpp b/source/gameengine/Ketsji/KX_PythonInit.cpp index 0d39eb844b5..02995a53954 100644 --- a/source/gameengine/Ketsji/KX_PythonInit.cpp +++ b/source/gameengine/Ketsji/KX_PythonInit.cpp @@ -1921,6 +1921,9 @@ PyObject *initGamePlayerPythonScripting(const STR_String& progname, TPythonSecur PySys_SetObject("argv", py_argv); Py_DECREF(py_argv); } + + /* Initialize thread support (also acquires lock) */ + PyEval_InitThreads(); bpy_import_init(PyEval_GetBuiltins()); |