13 #include "../generic/py_capi_utils.h"
22 {
"supported",
"Boolean, True when Blender is built with Alembic support"},
23 {
"version",
"The Alembic version as a tuple of 3 numbers"},
24 {
"version_string",
"The Alembic version formatted as a string"},
30 "This module contains information about Alembic blender is linked against",
39 if (alembic_info ==
NULL) {
46 # define SetStrItem(str) PyStructSequence_SET_ITEM(alembic_info, pos++, PyUnicode_FromString(str))
49 #define SetObjItem(obj) PyStructSequence_SET_ITEM(alembic_info, pos++, obj)
53 const int major = curversion / 10000;
54 const int minor = (curversion / 100) - (major * 100);
55 const int patch = curversion - ((curversion / 100) * 100);
59 SetObjItem(PyUnicode_FromFormat(
"%2d, %2d, %2d", major, minor, patch));
67 Py_DECREF(alembic_info);
int ABC_get_version(void)
static PyTypeObject BlenderAppABCType
PyObject * BPY_app_alembic_struct(void)
static PyStructSequence_Field app_alembic_info_fields[]
static PyObject * make_alembic_info(void)
static PyStructSequence_Desc app_alembic_info_desc
#define PyC_Tuple_Pack_I32(...)