diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-02-27 13:27:12 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-02-27 13:27:12 +0300 |
commit | e3f8c620287da672a38adb596d1d9eee2811bdea (patch) | |
tree | 254ae0ece868a47710f8b23b989f1696aafd7e21 /source/blender/python/api2_2x/Lattice.c | |
parent | d067c113366ab9b4d378fd978e0acee1d91a0db3 (diff) |
fix for own error, mixed decloration.
Diffstat (limited to 'source/blender/python/api2_2x/Lattice.c')
-rw-r--r-- | source/blender/python/api2_2x/Lattice.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/python/api2_2x/Lattice.c b/source/blender/python/api2_2x/Lattice.c index 42cb7e1e278..3a4e95cb68a 100644 --- a/source/blender/python/api2_2x/Lattice.c +++ b/source/blender/python/api2_2x/Lattice.c @@ -263,13 +263,15 @@ static PyObject *M_Lattice_Get( PyObject * self, PyObject * args ) PyObject *Lattice_Init( void ) { PyObject *mod; + PyObject *dict; if( PyType_Ready( &Lattice_Type ) < 0 ) return NULL; mod = Py_InitModule3( "Blender.Lattice", M_Lattice_methods, M_Lattice_doc ); - PyObject *dict = PyModule_GetDict( mod ); + + dict = PyModule_GetDict( mod ); //Module dictionary #define EXPP_ADDCONST(x) EXPP_dict_set_item_str(dict, #x, PyInt_FromLong(LT_##x)) @@ -824,4 +826,4 @@ PyTypeObject Lattice_Type = { NULL, /* PyObject *tp_subclasses; */ NULL, /* PyObject *tp_weaklist; */ NULL -};
\ No newline at end of file +}; |