Add OpenSubdiv information to bpy.app
Allows to customize interface and inform about lack of subdivision surface support.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user