diff options
author | Campbell Barton <ideasman42@gmail.com> | 2008-02-12 17:47:55 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2008-02-12 17:47:55 +0300 |
commit | 3974a0a3c1a19aaa2a06df1bad7f96f827088319 (patch) | |
tree | b8a139e3f896aca0eae155b4d14ca039dacafaeb /source/blender/python/api2_2x/BGL.c | |
parent | c371346601276d9ae72ace5f4a877b42107bea78 (diff) |
Added python access for baking
http://www.blender.org/documentation/246PythonDoc/
http://www.blender.org/documentation/246PythonDoc/Render.RenderData-class.html
http://www.blender.org/documentation/246PythonDoc/bpy_api_2_46.zip
Diffstat (limited to 'source/blender/python/api2_2x/BGL.c')
-rw-r--r-- | source/blender/python/api2_2x/BGL.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/python/api2_2x/BGL.c b/source/blender/python/api2_2x/BGL.c index 5d78fd09e2d..c67ae7f59ef 100644 --- a/source/blender/python/api2_2x/BGL.c +++ b/source/blender/python/api2_2x/BGL.c @@ -1,5 +1,5 @@ /* - * $Id: BGL.c 12267 2007-10-17 09:51:13Z campbellbarton $ + * $Id$ * * ***** BEGIN GPL/BL DUAL LICENSE BLOCK ***** * @@ -1099,7 +1099,7 @@ PyObject *BGL_Init(void) if( PyType_Ready( &buffer_Type) < 0) Py_RETURN_NONE; -#define EXPP_ADDCONST(x) EXPP_dict_set_item_str(dict, #x, PyInt_FromLong(x)) +#define EXPP_ADDCONST(x) EXPP_dict_set_item_str(dict, #x, PyInt_FromLong((int)x)) /* So, for example: * EXPP_ADDCONST(GL_CURRENT_BIT) becomes @@ -1126,7 +1126,8 @@ PyObject *BGL_Init(void) EXPP_ADDCONST(GL_TEXTURE_BIT); EXPP_ADDCONST(GL_SCISSOR_BIT); EXPP_ADDCONST(GL_ALL_ATTRIB_BITS); - + EXPP_ADDCONST(GL_CLIENT_ALL_ATTRIB_BITS); + EXPP_ADDCONST(GL_FALSE); EXPP_ADDCONST(GL_TRUE); |