Added function name to many of the PyArg_ParseTuple calls in gameengine
This way python raises more useful messages.
This commit is contained in:
@@ -205,7 +205,7 @@ PyObject* SCA_PythonController::sPyAddActiveActuator(
|
||||
|
||||
PyObject* ob1;
|
||||
int activate;
|
||||
if (!PyArg_ParseTuple(args, "Oi", &ob1,&activate))
|
||||
if (!PyArg_ParseTuple(args, "Oi:addActiveActuator", &ob1,&activate))
|
||||
return NULL;
|
||||
|
||||
SCA_IActuator* actu = LinkedActuatorFromPy(ob1);
|
||||
|
||||
Reference in New Issue
Block a user