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
diff options
context:
space:
mode:
authorNathan Letwory <nathan@letworyinteractive.com>2009-02-28 18:28:18 +0300
committerNathan Letwory <nathan@letworyinteractive.com>2009-02-28 18:28:18 +0300
commit2469305376856e0f53b4ffdbe2bf2576fa25809c (patch)
treeeec057573bbbd76fa79a6fc09deff648eb63d3f0 /source/blender/python/intern
parentbab4cd69913eee9aa30d61db7dc46e21655e4bde (diff)
2.5 \ Python API
* put back #if PY_VERSION_HEX check again, so we without Python 3.0 can still compile - Campbell, please don't remove it again, ok?
Diffstat (limited to 'source/blender/python/intern')
-rw-r--r--source/blender/python/intern/bpy_ui.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/python/intern/bpy_ui.c b/source/blender/python/intern/bpy_ui.c
index a8b57e1aab6..875a6892f5b 100644
--- a/source/blender/python/intern/bpy_ui.c
+++ b/source/blender/python/intern/bpy_ui.c
@@ -395,6 +395,7 @@ static struct PyMethodDef ui_methods[] = {
{NULL, NULL, 0, NULL}
};
+#if PY_VERSION_HEX >= 0x03000000
static struct PyModuleDef ui_module = {
PyModuleDef_HEAD_INIT,
"bpyui",
@@ -403,6 +404,7 @@ static struct PyModuleDef ui_module = {
ui_methods,
NULL, NULL, NULL, NULL
};
+#endif
PyObject *BPY_ui_module( void )
{