diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-12-08 13:03:17 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-12-08 13:03:17 +0400 |
commit | 46f8dba4c783fe5d174bd47a70710f9d7f0aeb07 (patch) | |
tree | 7998b9664bb00612501243ca20c0c9ddc7b5a0e9 /source/blender/python/intern/bpy_app.c | |
parent | 55416f435ab9043df13b23e3e5244003d05d69bf (diff) |
Extend system-info with information about OIIO, OCIO and OSL
Summary:
Version of those libraries might be useful to know.
- OIIO and OCIO is exposed via bpy.app.oiio and bpy.app.ocio.
There're "supported", "version" and "version_string" defined
in those modules.
- OSL is available as _cycles.osl_version and _cycles.osl_version_string.
Reviewers: campbellbarton
Reviewed By: campbellbarton
CC: dingto
Differential Revision: http://developer.blender.org/D79
Diffstat (limited to 'source/blender/python/intern/bpy_app.c')
-rw-r--r-- | source/blender/python/intern/bpy_app.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/python/intern/bpy_app.c b/source/blender/python/intern/bpy_app.c index 21767196e11..795015c42a0 100644 --- a/source/blender/python/intern/bpy_app.c +++ b/source/blender/python/intern/bpy_app.c @@ -34,6 +34,8 @@ #include "bpy_app.h" #include "bpy_app_ffmpeg.h" +#include "bpy_app_ocio.h" +#include "bpy_app_oiio.h" #include "bpy_app_build_options.h" #include "bpy_app_translations.h" @@ -93,6 +95,8 @@ static PyStructSequence_Field app_info_fields[] = { /* submodules */ {(char *)"ffmpeg", (char *)"FFmpeg library information backend"}, + {(char *)"ocio", (char *)"OpenColorIO library information backend"}, + {(char *)"oiio", (char *)"OpenImageIO library information backend"}, {(char *)"build_options", (char *)"A set containing most important enabled optional build features"}, {(char *)"handlers", (char *)"Application handler callbacks"}, {(char *)"translations", (char *)"Application and addons internationalization API"}, @@ -167,6 +171,8 @@ static PyObject *make_app_info(void) #endif SetObjItem(BPY_app_ffmpeg_struct()); + SetObjItem(BPY_app_ocio_struct()); + SetObjItem(BPY_app_oiio_struct()); SetObjItem(BPY_app_build_options_struct()); SetObjItem(BPY_app_handlers_struct()); SetObjItem(BPY_app_translations_struct()); |