diff options
author | Campbell Barton <ideasman42@gmail.com> | 2008-09-05 06:53:12 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2008-09-05 06:53:12 +0400 |
commit | e3a1547eea2b76daa30ccd9405868f8e5f2a1bc4 (patch) | |
tree | 124785952e5b78049ebeb6f1ba9cdfa3c9da938d /source/blender | |
parent | 3c95d91a575d44842d7ee2a3406a9222bf11451c (diff) |
BGE Py API
added exception messages for replaceMesh.setMesh() and allowed None as an argument.
added exception messages for other BGE module functions.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/python/api2_2x/Mathutils.c | 2 | ||||
-rw-r--r-- | source/blender/python/api2_2x/Mathutils.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/python/api2_2x/Mathutils.c b/source/blender/python/api2_2x/Mathutils.c index 217e096060f..f0b51285376 100644 --- a/source/blender/python/api2_2x/Mathutils.c +++ b/source/blender/python/api2_2x/Mathutils.c @@ -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; diff --git a/source/blender/python/api2_2x/Mathutils.h b/source/blender/python/api2_2x/Mathutils.h index 76d53cb6c4c..0db83216178 100644 --- a/source/blender/python/api2_2x/Mathutils.h +++ b/source/blender/python/api2_2x/Mathutils.h @@ -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); |