~ubuntu-branches/ubuntu/gutsy/blender/gutsy-security

« back to all changes in this revision

Viewing changes to source/blender/python/api2_2x/BGL.c

  • Committer: Bazaar Package Importer
  • Author(s): Florian Ernst
  • Date: 2007-05-17 11:47:59 UTC
  • mfrom: (1.2.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20070517114759-yp4ybrnhp2u7pk66
Tags: 2.44-1
* New upstream release.
* Drop debian/patches/01_64bits_stupidity, not needed anymore: as of this
  version blender is 64 bits safe again. Adjust README.Debian accordingly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* 
2
 
 * $Id: BGL.c,v 1.21 2006/09/30 14:14:48 campbellbarton Exp $
 
2
 * $Id: BGL.c,v 1.22 2007/03/16 11:38:01 campbellbarton Exp $
3
3
 *
4
4
 * ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
5
5
 *
1091
1091
{
1092
1092
        PyObject *mod= Py_InitModule("Blender.BGL", BGL_methods);
1093
1093
        PyObject *dict= PyModule_GetDict(mod);
1094
 
 
1095
 
        buffer_Type.ob_type = &PyType_Type;
 
1094
        
 
1095
        if( PyType_Ready( &buffer_Type) < 0)
 
1096
                Py_RETURN_NONE;
1096
1097
 
1097
1098
#define EXPP_ADDCONST(x) EXPP_dict_set_item_str(dict, #x, PyInt_FromLong(x))
1098
1099