Changeset View
Changeset View
Standalone View
Standalone View
source/blender/python/intern/bpy_app_build_options.c
| Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Lines | static PyStructSequence_Field app_builtopts_info_fields[] = { | ||||
| {(char *)"mod_oceansim", NULL}, | {(char *)"mod_oceansim", NULL}, | ||||
| {(char *)"mod_remesh", NULL}, | {(char *)"mod_remesh", NULL}, | ||||
| {(char *)"mod_smoke", NULL}, | {(char *)"mod_smoke", NULL}, | ||||
| {(char *)"collada", NULL}, | {(char *)"collada", NULL}, | ||||
| {(char *)"opencolorio", NULL}, | {(char *)"opencolorio", NULL}, | ||||
| {(char *)"openmp", NULL}, | {(char *)"openmp", NULL}, | ||||
| {(char *)"openvdb", NULL}, | {(char *)"openvdb", NULL}, | ||||
| {(char *)"alembic", NULL}, | {(char *)"alembic", NULL}, | ||||
| {(char *)"usd", NULL}, | |||||
| {NULL}, | {NULL}, | ||||
| }; | }; | ||||
| static PyStructSequence_Desc app_builtopts_info_desc = { | static PyStructSequence_Desc app_builtopts_info_desc = { | ||||
| (char *)"bpy.app.build_options", /* name */ | (char *)"bpy.app.build_options", /* name */ | ||||
| (char *)"This module contains information about options blender is built with", /* doc */ | (char *)"This module contains information about options blender is built with", /* doc */ | ||||
| app_builtopts_info_fields, /* fields */ | app_builtopts_info_fields, /* fields */ | ||||
| ARRAY_SIZE(app_builtopts_info_fields) - 1, | ARRAY_SIZE(app_builtopts_info_fields) - 1, | ||||
| ▲ Show 20 Lines • Show All 199 Lines • ▼ Show 20 Lines | |||||
| #endif | #endif | ||||
| #ifdef WITH_ALEMBIC | #ifdef WITH_ALEMBIC | ||||
| SetObjIncref(Py_True); | SetObjIncref(Py_True); | ||||
| #else | #else | ||||
| SetObjIncref(Py_False); | SetObjIncref(Py_False); | ||||
| #endif | #endif | ||||
| #ifdef WITH_USD | |||||
| SetObjIncref(Py_True); | |||||
| #else | |||||
| SetObjIncref(Py_False); | |||||
| #endif | |||||
| #undef SetObjIncref | #undef SetObjIncref | ||||
| return builtopts_info; | return builtopts_info; | ||||
| } | } | ||||
| PyObject *BPY_app_build_options_struct(void) | PyObject *BPY_app_build_options_struct(void) | ||||
| { | { | ||||
| PyObject *ret; | PyObject *ret; | ||||
| Show All 13 Lines | |||||