diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-09-03 12:21:51 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-09-03 12:45:52 +0300 |
commit | 42478436ae60e4fd75439c3962c97ebb15023d94 (patch) | |
tree | 6e0e9290ec5e5aa437bf657dafe9abd019d0bdd8 /source/blender/python/intern/bpy_app_build_options.c | |
parent | 5ea6545ad576bcc3ea107d351fda3c3909651c61 (diff) |
Add OpenSubdiv information to bpy.app
Allows to customize interface and inform about lack of
subdivision surface support.
Diffstat (limited to 'source/blender/python/intern/bpy_app_build_options.c')
-rw-r--r-- | source/blender/python/intern/bpy_app_build_options.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/python/intern/bpy_app_build_options.c b/source/blender/python/intern/bpy_app_build_options.c index a841e974e85..afb2f6b3636 100644 --- a/source/blender/python/intern/bpy_app_build_options.c +++ b/source/blender/python/intern/bpy_app_build_options.c @@ -46,6 +46,7 @@ static PyStructSequence_Field app_builtopts_info_fields[] = { {(char *)"audaspace", NULL}, {(char *)"international", NULL}, {(char *)"openal", NULL}, + {(char *)"opensubdiv", NULL}, {(char *)"sdl", NULL}, {(char *)"sdl_dynload", NULL}, {(char *)"jack", NULL}, @@ -190,6 +191,12 @@ static PyObject *make_builtopts_info(void) SetObjIncref(Py_False); #endif +#ifdef WITH_OPENSUBDIV + SetObjIncref(Py_True); +#else + SetObjIncref(Py_False); +#endif + #ifdef WITH_SDL SetObjIncref(Py_True); #else |