diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-12-09 18:11:02 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-12-09 18:11:02 +0400 |
commit | ab6f60aad2b030df476a55e6c227f78e8a1b9ce8 (patch) | |
tree | 4d5f2702cbef8b026cebcc6ba5fc4b312d2fb7fd /source/blender | |
parent | 11eb238b821d3eef15f2dc9a3e1518948fe3ff79 (diff) |
Python API: when OCIO is disabled use the same version format.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/python/intern/bpy_app_ocio.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/python/intern/bpy_app_ocio.c b/source/blender/python/intern/bpy_app_ocio.c index dfcbfe94ead..eff52bc9dae 100644 --- a/source/blender/python/intern/bpy_app_ocio.c +++ b/source/blender/python/intern/bpy_app_ocio.c @@ -63,8 +63,11 @@ static PyObject *make_ocio_info(void) return NULL; } +#ifndef WITH_OCIO #define SetStrItem(str) \ PyStructSequence_SET_ITEM(ocio_info, pos++, PyUnicode_FromString(str)) +#endif + #define SetObjItem(obj) \ PyStructSequence_SET_ITEM(ocio_info, pos++, obj) @@ -77,7 +80,7 @@ static PyObject *make_ocio_info(void) curversion >> 24, (curversion >> 16) % 256, (curversion >> 8) % 256)); #else SetObjItem(PyBool_FromLong(0)); - SetStrItem("Unknown"); + SetObjItem(Py_BuildValue("(iii)", 0, 0, 0)); SetStrItem("Unknown"); #endif |