[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [19613] trunk/blender/source/blender/ python/api2_2x/BGL.c: Python 2.3 wouldn't compile with BGL.

Campbell Barton ideasman42 at gmail.com
Thu Apr 9 03:52:31 CEST 2009


Revision: 19613
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=19613
Author:   campbellbarton
Date:     2009-04-09 03:52:29 +0200 (Thu, 09 Apr 2009)

Log Message:
-----------
Python 2.3 wouldn't compile with BGL.

Modified Paths:
--------------
    trunk/blender/source/blender/python/api2_2x/BGL.c

Modified: trunk/blender/source/blender/python/api2_2x/BGL.c
===================================================================
--- trunk/blender/source/blender/python/api2_2x/BGL.c	2009-04-08 23:03:46 UTC (rev 19612)
+++ trunk/blender/source/blender/python/api2_2x/BGL.c	2009-04-09 01:52:29 UTC (rev 19613)
@@ -1091,7 +1091,7 @@
 	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)
 





More information about the Bf-blender-cvs mailing list