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:
authorCampbell Barton <ideasman42@gmail.com>2009-04-08 21:40:09 +0400
committerCampbell Barton <ideasman42@gmail.com>2009-04-08 21:40:09 +0400
commit1ee970e03bb6395ed0c0e884826a8e08b91e97bf (patch)
treeeff183ebf356ad08d615b504e4170a5812b7fd19 /source/gameengine/Ketsji/KX_GameObject.cpp
parentdb33320df7f4db6480a15502baecaafefc1be63d (diff)
small bge edits
- Only try and remove light objects from the light list. - Only loop over mesh verts once when getting the bounding box - dont return None from python attribute localInertia when theres no physics objects. better return a vector still. - add names to send message PyArg_ParseTuple functions.
Diffstat (limited to 'source/gameengine/Ketsji/KX_GameObject.cpp')
-rw-r--r--source/gameengine/Ketsji/KX_GameObject.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/gameengine/Ketsji/KX_GameObject.cpp b/source/gameengine/Ketsji/KX_GameObject.cpp
index 5085b52adda..13e839d9d2e 100644
--- a/source/gameengine/Ketsji/KX_GameObject.cpp
+++ b/source/gameengine/Ketsji/KX_GameObject.cpp
@@ -1325,7 +1325,7 @@ PyObject* KX_GameObject::pyattr_get_localInertia(void *self_v, const KX_PYATTRIB
{
return PyObjectFrom(self->GetPhysicsController()->GetLocalInertia());
}
- Py_RETURN_NONE;
+ return Py_BuildValue("fff", 0.0f, 0.0f, 0.0f);
}
PyObject* KX_GameObject::pyattr_get_orientation(void *self_v, const KX_PYATTRIBUTE_DEF *attrdef)
@@ -2349,7 +2349,7 @@ KX_PYMETHODDEF_DOC_VARARGS(KX_GameObject, sendMessage,
char* to = "";
const STR_String& from = GetName();
- if (!PyArg_ParseTuple(args, "s|sss", &subject, &body, &to))
+ if (!PyArg_ParseTuple(args, "s|sss:sendMessage", &subject, &body, &to))
return NULL;
KX_GetActiveScene()->GetNetworkScene()->SendMessage(to, from, subject, body);