BGE Py API

added exception messages for replaceMesh.setMesh() and allowed None as an argument.
added exception messages for other BGE module functions.
This commit is contained in:
2008-09-05 02:53:12 +00:00
parent 3c95d91a57
commit e3a1547eea
6 changed files with 228 additions and 229 deletions

View File

@@ -108,7 +108,7 @@ struct PyMethodDef M_Mathutils_methods[] = {
};
/*----------------------------MODULE INIT-------------------------*/
/* from can be Blender.Mathutils or GameLogic.Mathutils for the BGE */
PyObject *Mathutils_Init(char *from)
PyObject *Mathutils_Init(const char *from)
{
PyObject *submodule;

View File

@@ -38,7 +38,7 @@
#include "euler.h"
#include "point.h"
PyObject *Mathutils_Init( char * from );
PyObject *Mathutils_Init( const char * from );
PyObject *row_vector_multiplication(VectorObject* vec, MatrixObject * mat);
PyObject *column_vector_multiplication(MatrixObject * mat, VectorObject* vec);
PyObject *row_point_multiplication(PointObject* pt, MatrixObject * mat);