diff options
author | Erwin Coumans <blender@erwincoumans.com> | 2006-05-14 07:39:07 +0400 |
---|---|---|
committer | Erwin Coumans <blender@erwincoumans.com> | 2006-05-14 07:39:07 +0400 |
commit | 337a84ee969ff2c86452f1e54d46beab5ee0d268 (patch) | |
tree | 961d44d19bff41e67facb05110b1b659793d4314 /source/gameengine/GameLogic/SCA_PythonController.cpp | |
parent | b817c78b0d5c7bd50ac4bf2c4b21751d61cc2342 (diff) |
GamePython related: changed ordering of python destruction, and reverted some python changes (it caused problems)
Diffstat (limited to 'source/gameengine/GameLogic/SCA_PythonController.cpp')
-rw-r--r-- | source/gameengine/GameLogic/SCA_PythonController.cpp | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/source/gameengine/GameLogic/SCA_PythonController.cpp b/source/gameengine/GameLogic/SCA_PythonController.cpp index 47723c60592..c44971d7028 100644 --- a/source/gameengine/GameLogic/SCA_PythonController.cpp +++ b/source/gameengine/GameLogic/SCA_PythonController.cpp @@ -56,6 +56,20 @@ SCA_PythonController::SCA_PythonController(SCA_IObject* gameobj, { } +/* +//debugging +CValue* SCA_PythonController::AddRef() +{ + //printf("AddRef refcount = %i\n",GetRefCount()); + return CValue::AddRef(); +} +int SCA_PythonController::Release() +{ + //printf("Release refcount = %i\n",GetRefCount()); + return CValue::Release(); +} +*/ + SCA_PythonController::~SCA_PythonController() @@ -278,7 +292,7 @@ void SCA_PythonController::Trigger(SCA_LogicManager* logicmgr) Py_DECREF(excdict);*/ -#if 0 +#if 1 PyObject *excdict= PyDict_Copy(m_pythondictionary); PyObject* resultobj = PyEval_EvalCode((PyCodeObject*)m_bytecode, excdict, |