BGE: The Blenderplayer wasn't calling PyEval_InitThreads, which caused async lib loading to crash.

This commit is contained in:
Mitchell Stokes 2013-01-05 03:30:56 +00:00
parent 52a81c8364
commit d9001335ff

@ -1922,6 +1922,9 @@ PyObject *initGamePlayerPythonScripting(const STR_String& progname, TPythonSecur
Py_DECREF(py_argv); Py_DECREF(py_argv);
} }
/* Initialize thread support (also acquires lock) */
PyEval_InitThreads();
bpy_import_init(PyEval_GetBuiltins()); bpy_import_init(PyEval_GetBuiltins());
/* mathutils types are used by the BGE even if we don't import them */ /* mathutils types are used by the BGE even if we don't import them */