Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Gilbert <ascotan@gmail.com>2005-08-17 18:26:00 +0400
committerJoseph Gilbert <ascotan@gmail.com>2005-08-17 18:26:00 +0400
commit8b060dd5adfe5d56f558e4a600717f2b755d8559 (patch)
treeadd7c4df0056bf27f4397ea62162668956630d49 /source/blender/python/api2_2x/sceneRadio.c
parent2872263377aa48233bc4e6a8f298a3706464288c (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/sceneRadio.c')
-rw-r--r--source/blender/python/api2_2x/sceneRadio.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/python/api2_2x/sceneRadio.c b/source/blender/python/api2_2x/sceneRadio.c
index 48765263eea..607cea2f570 100644
--- a/source/blender/python/api2_2x/sceneRadio.c
+++ b/source/blender/python/api2_2x/sceneRadio.c
@@ -873,15 +873,15 @@ PyObject *Radio_Init( void )
submodule = Py_InitModule3( "Blender.Scene.Radio", M_Radio_methods,
"The Blender Radiosity submodule" );
- Modes = M_constant_New( );
- DrawTypes = M_constant_New( );
+ Modes = PyConstant_New( );
+ DrawTypes = PyConstant_New( );
if( Modes ) {
BPy_constant *d = ( BPy_constant * ) Modes;
- constant_insert( d, "ShowLimits",
+ PyConstant_Insert( d, "ShowLimits",
PyInt_FromLong( EXPP_RADIO_flag_SHOWLIM ) );
- constant_insert( d, "Z", PyInt_FromLong( EXPP_RADIO_flag_Z ) );
+ PyConstant_Insert( d, "Z", PyInt_FromLong( EXPP_RADIO_flag_Z ) );
PyModule_AddObject( submodule, "Modes", Modes );
}
@@ -889,11 +889,11 @@ PyObject *Radio_Init( void )
if( DrawTypes ) {
BPy_constant *d = ( BPy_constant * ) DrawTypes;
- constant_insert( d, "Wire",
+ PyConstant_Insert( d, "Wire",
PyInt_FromLong( EXPP_RADIO_drawtype_WIRE ) );
- constant_insert( d, "Solid",
+ PyConstant_Insert( d, "Solid",
PyInt_FromLong( EXPP_RADIO_drawtype_SOLID ) );
- constant_insert( d, "Gouraud",
+ PyConstant_Insert( d, "Gouraud",
PyInt_FromLong
( EXPP_RADIO_drawtype_GOURAUD ) );