type initialization updates, and refcount fix for lamp, reverted some changes to NMesh

This commit is contained in:
2007-03-16 11:38:02 +00:00
parent c5f4a0a1b0
commit bc1fdcd858
10 changed files with 36 additions and 15 deletions

View File

@@ -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))