Python 2.3 wouldn't compile with BGL.
authorCampbell Barton <ideasman42@gmail.com>
Thu, 9 Apr 2009 01:52:29 +0000 (01:52 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 9 Apr 2009 01:52:29 +0000 (01:52 +0000)
source/blender/python/api2_2x/BGL.c

index e5868a82c2cf3eff432f52840194bf83fd0cbee8..cfbb4611c6ccf09490027f030c271fc1340d8cf8 100644 (file)
@@ -1091,7 +1091,7 @@ PyObject *BGL_Init(const char *from)
        PyObject *dict= PyModule_GetDict(mod);
        PyObject *item;
        if( PyType_Ready( &buffer_Type) < 0)
-               Py_RETURN_NONE;
+               return NULL; /* should never happen */
 
 #define EXPP_ADDCONST(x) PyDict_SetItemString(dict, #x, item=PyInt_FromLong((int)x)); Py_DECREF(item)