From d9001335ffd4c875b0bca7d36956b96012a34a1e Mon Sep 17 00:00:00 2001 From: Mitchell Stokes Date: Sat, 5 Jan 2013 03:30:56 +0000 Subject: [PATCH] BGE: The Blenderplayer wasn't calling PyEval_InitThreads, which caused async lib loading to crash. --- source/gameengine/Ketsji/KX_PythonInit.cpp | 3 +++ 1 file changed, 3 insertions(+) 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());