From 3f2cb6e87855e4afc2e26d87f36817a92490429e Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 14 Aug 2008 03:23:36 +0000 Subject: game engine python api * removed macros that were not used much, some misleading. * removed error string setting calls that overwrote the error set by PyArg_ParseTuple with a less useful one. * use python macros Py_RETURN_NONE, Py_RETURN_TRUE, Py_RETURN_FALSE --- source/gameengine/GameLogic/SCA_ILogicBrick.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source/gameengine/GameLogic/SCA_ILogicBrick.cpp') diff --git a/source/gameengine/GameLogic/SCA_ILogicBrick.cpp b/source/gameengine/GameLogic/SCA_ILogicBrick.cpp index e73358bc1e8..f5512664d8f 100644 --- a/source/gameengine/GameLogic/SCA_ILogicBrick.cpp +++ b/source/gameengine/GameLogic/SCA_ILogicBrick.cpp @@ -271,8 +271,7 @@ PyObject* SCA_ILogicBrick::PyGetOwner(PyObject* self) } printf("ERROR: Python scriptblock without owner\n"); - Py_INCREF(Py_None); - return Py_None;//Int_FromLong(IsPositiveTrigger()); + Py_RETURN_NONE; //Int_FromLong(IsPositiveTrigger()); } -- cgit v1.2.3