diff options
author | Benoit Bolsee <benoit.bolsee@online.be> | 2009-04-21 13:38:27 +0400 |
---|---|---|
committer | Benoit Bolsee <benoit.bolsee@online.be> | 2009-04-21 13:38:27 +0400 |
commit | 6c5e18ca98de0dfa2fd64c7a74258c207371298b (patch) | |
tree | 229feb648c6ac88c5d5cf724d14e4cf30f04b1f7 /source | |
parent | 106b5a435c3f10666240fccf3b7d059d54e7be89 (diff) |
Fix compilation error in MSVC.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/python/api2_2x/BGL.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/python/api2_2x/BGL.c b/source/blender/python/api2_2x/BGL.c index ddb12eb2338..7735f2b444f 100644 --- a/source/blender/python/api2_2x/BGL.c +++ b/source/blender/python/api2_2x/BGL.c @@ -1101,15 +1101,14 @@ static struct PyModuleDef BGL_module_def = { PyObject *BGL_Init(const char *from) { - PyObject *mod; + PyObject *mod, *dict, *item; #if (PY_VERSION_HEX >= 0x03000000) mod = PyModule_Create(&BGL_module_def); #else mod= Py_InitModule(from, BGL_methods); #endif + dict= PyModule_GetDict(mod); - PyObject *dict= PyModule_GetDict(mod); - PyObject *item; if( PyType_Ready( &buffer_Type) < 0) return NULL; /* should never happen */ |