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
@ -1921,6 +1921,9 @@ PyObject *initGamePlayerPythonScripting(const STR_String& progname, TPythonSecur
|
|||||||
PySys_SetObject("argv", py_argv);
|
PySys_SetObject("argv", py_argv);
|
||||||
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());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user