diff options
author | Joseph Gilbert <ascotan@gmail.com> | 2005-08-17 18:26:00 +0400 |
---|---|---|
committer | Joseph Gilbert <ascotan@gmail.com> | 2005-08-17 18:26:00 +0400 |
commit | 8b060dd5adfe5d56f558e4a600717f2b755d8559 (patch) | |
tree | add7c4df0056bf27f4397ea62162668956630d49 /source/blender/python/api2_2x/Material.c | |
parent | 2872263377aa48233bc4e6a8f298a3706464288c (diff) |
- update to constant.c
- give it the key/items interface
- creates some factory functions for const generation
- genutils methods
- method for getting module constants
- method for throwing errors with a print string
- updates to function names
- clean up interpreter launch a bit
Diffstat (limited to 'source/blender/python/api2_2x/Material.c')
-rw-r--r-- | source/blender/python/api2_2x/Material.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/python/api2_2x/Material.c b/source/blender/python/api2_2x/Material.c index 81be14de13e..8a57d5765d2 100644 --- a/source/blender/python/api2_2x/Material.c +++ b/source/blender/python/api2_2x/Material.c @@ -366,11 +366,11 @@ static PyObject *M_Material_Get( PyObject * self, PyObject * args ) static PyObject *Material_ModesDict( void ) { - PyObject *Modes = M_constant_New( ); + PyObject *Modes = PyConstant_New( ); #undef EXPP_ADDCONST #define EXPP_ADDCONST(name) \ - constant_insert(c, #name, PyInt_FromLong(EXPP_MAT_MODE_##name)) + PyConstant_Insert(c, #name, PyInt_FromLong(EXPP_MAT_MODE_##name)) /* So that: * EXPP_ADDCONST(TRACEABLE) becomes: @@ -414,11 +414,11 @@ static PyObject *Material_ModesDict( void ) static PyObject *Material_ShadersDict( void ) { - PyObject *Shaders = M_constant_New( ); + PyObject *Shaders = PyConstant_New( ); #undef EXPP_ADDCONST #define EXPP_ADDCONST(name) \ - constant_insert(c, #name, PyInt_FromLong(EXPP_MAT_SHADER_##name)) + PyConstant_Insert(c, #name, PyInt_FromLong(EXPP_MAT_SHADER_##name)) /* So that: * EXPP_ADDCONST(DIFFUSE_LAMBERT) becomes: |