Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErwin Coumans <blender@erwincoumans.com>2006-05-14 07:39:07 +0400
committerErwin Coumans <blender@erwincoumans.com>2006-05-14 07:39:07 +0400
commit337a84ee969ff2c86452f1e54d46beab5ee0d268 (patch)
tree961d44d19bff41e67facb05110b1b659793d4314 /source/gameengine/GameLogic/SCA_PythonController.cpp
parentb817c78b0d5c7bd50ac4bf2c4b21751d61cc2342 (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.cpp16
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,