diff options
author | Mitchell Stokes <mogurijin@gmail.com> | 2012-12-22 12:59:11 +0400 |
---|---|---|
committer | Mitchell Stokes <mogurijin@gmail.com> | 2012-12-22 12:59:11 +0400 |
commit | 2d9ec9cadfa05b8f9cfa68b9edcabe12dc8fc267 (patch) | |
tree | 9e12c6021b2de2265a2b2681fab04bc6229b4827 /source/gameengine | |
parent | b0fd9378e3bab387194a671e818deb4537c369a6 (diff) |
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.
Diffstat (limited to 'source/gameengine')
-rw-r--r-- | source/gameengine/Ketsji/KX_Scene.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/source/gameengine/Ketsji/KX_Scene.cpp b/source/gameengine/Ketsji/KX_Scene.cpp index d298d1b4815..72be5f57b95 100644 --- a/source/gameengine/Ketsji/KX_Scene.cpp +++ b/source/gameengine/Ketsji/KX_Scene.cpp @@ -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 } |