diff options
author | Michel Selten <michel@mselten.demon.nl> | 2003-06-04 22:59:19 +0400 |
---|---|---|
committer | Michel Selten <michel@mselten.demon.nl> | 2003-06-04 22:59:19 +0400 |
commit | 474ab1ff7b0724c3fa3cbc575cf881f7494be1fb (patch) | |
tree | 0c19a267d17b8263b65f92328b0cb0eaadae4c86 /source/blender/python/api2_2x/BGL.c | |
parent | 7d38afc7b60364f0c64c040befe5b22f9ecc53f9 (diff) |
* Fixed stupid compilation bug (non-gcc) in BGL. I did some initialization
before variable declarations. ugh, gcc -Wall didn't complain.
Diffstat (limited to 'source/blender/python/api2_2x/BGL.c')
-rw-r--r-- | source/blender/python/api2_2x/BGL.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/python/api2_2x/BGL.c b/source/blender/python/api2_2x/BGL.c index 21451f10272..c8d73c37042 100644 --- a/source/blender/python/api2_2x/BGL.c +++ b/source/blender/python/api2_2x/BGL.c @@ -1000,11 +1000,11 @@ static struct PyMethodDef BGL_methods[] = { PyObject *M_BGL_Init(void) { - buffer_Type.ob_type = &PyType_Type; - PyObject *mod= Py_InitModule("Blender.BGL", BGL_methods); PyObject *dict= PyModule_GetDict(mod); + buffer_Type.ob_type = &PyType_Type; + #define EXPP_ADDCONST(x) PyDict_SetItemString(dict, #x, PyInt_FromLong(x)) /* So, for example: |