diff options
author | Nathan Letwory <nathan@letworyinteractive.com> | 2009-02-28 18:28:18 +0300 |
---|---|---|
committer | Nathan Letwory <nathan@letworyinteractive.com> | 2009-02-28 18:28:18 +0300 |
commit | 2469305376856e0f53b4ffdbe2bf2576fa25809c (patch) | |
tree | eec057573bbbd76fa79a6fc09deff648eb63d3f0 /source/blender/python/intern | |
parent | bab4cd69913eee9aa30d61db7dc46e21655e4bde (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.c | 2 |
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 ) { |