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
path: root/source
diff options
context:
space:
mode:
authorBenoit Bolsee <benoit.bolsee@online.be>2009-04-21 13:38:27 +0400
committerBenoit Bolsee <benoit.bolsee@online.be>2009-04-21 13:38:27 +0400
commit6c5e18ca98de0dfa2fd64c7a74258c207371298b (patch)
tree229feb648c6ac88c5d5cf724d14e4cf30f04b1f7 /source
parent106b5a435c3f10666240fccf3b7d059d54e7be89 (diff)
Fix compilation error in MSVC.
Diffstat (limited to 'source')
-rw-r--r--source/blender/python/api2_2x/BGL.c5
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 */