forked from bartvdbraak/blender
BGE: The Blenderplayer wasn't calling PyEval_InitThreads, which caused async lib loading to crash.
This commit is contained in:
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 */
|
||||||
|
Loading…
Reference in New Issue
Block a user