diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-03-16 14:38:02 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-03-16 14:38:02 +0300 |
commit | bc1fdcd858cc1064fd4b03dac5cc058f22e2b02d (patch) | |
tree | 0205cceea8dbc978db1b7289027268bc3a3035e3 /source/blender/python/api2_2x/BGL.c | |
parent | c5f4a0a1b063716982d7e50c872894d39b0dea7c (diff) |
type initialization updates, and refcount fix for lamp, reverted some changes to NMesh
Diffstat (limited to 'source/blender/python/api2_2x/BGL.c')
-rw-r--r-- | source/blender/python/api2_2x/BGL.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/python/api2_2x/BGL.c b/source/blender/python/api2_2x/BGL.c index 1a287528d58..b18b71b39fa 100644 --- a/source/blender/python/api2_2x/BGL.c +++ b/source/blender/python/api2_2x/BGL.c @@ -1091,8 +1091,9 @@ PyObject *BGL_Init(void) { PyObject *mod= Py_InitModule("Blender.BGL", BGL_methods); PyObject *dict= PyModule_GetDict(mod); - - buffer_Type.ob_type = &PyType_Type; + + if( PyType_Ready( &buffer_Type) < 0) + Py_RETURN_NONE; #define EXPP_ADDCONST(x) EXPP_dict_set_item_str(dict, #x, PyInt_FromLong(x)) |