importing the GameLogic module was being done by adding the text "import GameLogic" to the start of all scripts used in the game engine, this meant every error line number was off by 1 (quite annoying). better to do this to the dictionary that the scripts run with.
This commit is contained in:
@@ -231,7 +231,10 @@ void KX_KetsjiEngine::SetRasterizer(RAS_IRasterizer* rasterizer)
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* At the moment the GameLogic module is imported into 'pythondictionary' after this function is called.
|
||||
* if this function ever changes to assign a copy, make sure the game logic module is imported into this dictionary before hand.
|
||||
*/
|
||||
void KX_KetsjiEngine::SetPythonDictionary(PyObject* pythondictionary)
|
||||
{
|
||||
MT_assert(pythondictionary);
|
||||
|
||||
Reference in New Issue
Block a user