Patch from Charlie:
Cleared the python dictionary at the end of the game engine, should fix some issues, also reverted the python controller changes, related to this This should fix the following bugs: [ #3789 ] [ #3815 ] possiblyy fixes: [ #3834 ]
This commit is contained in:
@@ -784,6 +784,15 @@ PyObject* initGameLogic(KX_Scene* scene) // quick hack to get gravity hook
|
||||
return d;
|
||||
}
|
||||
|
||||
void dictionaryClearByHand(PyObject *dict)
|
||||
{
|
||||
// Clears the dictionary by hand:
|
||||
// This prevents, extra references to global variables
|
||||
// inside the GameLogic dictionary when the python interpreter is finalized.
|
||||
// which allows the scene to safely delete them :)
|
||||
// see: (space.c)->start_game
|
||||
if(dict) PyDict_Clear(dict);
|
||||
}
|
||||
|
||||
|
||||
// Python Sandbox code
|
||||
|
||||
Reference in New Issue
Block a user