BGE: The PyGILState_Ensure() call in KX_Scene was causing a segfault in the Blenderplayer even when being run in the main thread. I'm removing it for now since I don't think it will really cause a problem.

This commit is contained in:
Mitchell Stokes
2012-12-22 08:59:11 +00:00
parent b0fd9378e3
commit 2d9ec9cadf

View File

@@ -227,13 +227,9 @@ KX_Scene::KX_Scene(class SCA_IInputDevice* keyboarddevice,
}
#ifdef WITH_PYTHON
// We might be running in a separate thread (async libload) so
// try and grab the GIL to avoid issues
PyGILState_STATE gstate = PyGILState_Ensure();
m_attr_dict = PyDict_New(); /* new ref */
m_draw_call_pre = NULL;
m_draw_call_post = NULL;
PyGILState_Release(gstate);
#endif
}