* Fixed stupid compilation bug (non-gcc) in BGL. I did some initialization
before variable declarations. ugh, gcc -Wall didn't complain.
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user