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/Text3d.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/Text3d.c')
-rw-r--r-- | source/blender/python/api2_2x/Text3d.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/python/api2_2x/Text3d.c b/source/blender/python/api2_2x/Text3d.c index aa0e6026cfd..8047218bdd2 100644 --- a/source/blender/python/api2_2x/Text3d.c +++ b/source/blender/python/api2_2x/Text3d.c @@ -352,11 +352,11 @@ PyObject *M_Text3d_Get( PyObject * self, PyObject * args ) static PyObject *generate_ModuleIntConstant(char *name, int value) { - PyObject *constant = M_constant_New(); + PyObject *constant = PyConstant_New(); - constant_insert((BPy_constant*)constant, + PyConstant_Insert((BPy_constant*)constant, "value", PyInt_FromLong(value)); - constant_insert((BPy_constant*)constant, + PyConstant_Insert((BPy_constant*)constant, "name", PyString_FromString(name)); Py_INCREF(constant); |