[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [19837] trunk/blender/source/blender/ python/api2_2x/BGL.c: Fix compilation error in MSVC.
Benoit Bolsee
benoit.bolsee at online.be
Tue Apr 21 11:38:28 CEST 2009
Revision: 19837
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=19837
Author: ben2610
Date: 2009-04-21 11:38:27 +0200 (Tue, 21 Apr 2009)
Log Message:
-----------
Fix compilation error in MSVC.
Modified Paths:
--------------
trunk/blender/source/blender/python/api2_2x/BGL.c
Modified: trunk/blender/source/blender/python/api2_2x/BGL.c
===================================================================
--- trunk/blender/source/blender/python/api2_2x/BGL.c 2009-04-21 09:31:07 UTC (rev 19836)
+++ trunk/blender/source/blender/python/api2_2x/BGL.c 2009-04-21 09:38:27 UTC (rev 19837)
@@ -1101,15 +1101,14 @@
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 */
More information about the Bf-blender-cvs
mailing list