Add OpenSubdiv information to bpy.app
Allows to customize interface and inform about lack of subdivision surface support.
This commit is contained in:
@@ -231,6 +231,10 @@ if(WITH_OPENAL)
|
||||
add_definitions(-DWITH_OPENAL)
|
||||
endif()
|
||||
|
||||
if(WITH_OPENSUBDIV)
|
||||
add_definitions(-DWITH_OPENSUBDIV)
|
||||
endif()
|
||||
|
||||
if(WITH_SDL)
|
||||
list(APPEND INC_SYS
|
||||
${SDL_INCLUDE_DIR}
|
||||
|
@@ -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