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 +};