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: