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.
This commit is contained in:
2009-04-08 17:40:09 +00:00
parent db33320df7
commit 1ee970e03b
4 changed files with 14 additions and 12 deletions

View File

@@ -184,7 +184,7 @@ static PyObject* gPySendMessage(PyObject*, PyObject* args)
char* to = "";
char* from = "";
if (!PyArg_ParseTuple(args, "s|sss", &subject, &body, &to, &from))
if (!PyArg_ParseTuple(args, "s|sss:sendMessage", &subject, &body, &to, &from))
return NULL;
gp_KetsjiScene->GetNetworkScene()->SendMessage(to, from, subject, body);