ID Properties binding have now been added for textures. Also, the beginnings of supporting "del IDProperty Object" (which basically removes the property from it's parent group then frees it) in python were done; really the only thing now is to figure out exactly *how* you overload the del operator. :S
27 lines
547 B
C++
27 lines
547 B
C++
#include <Python.h>
|
|
|
|
struct ID;
|
|
struct IDProperty;
|
|
struct BPy_IDGroup_Iter;
|
|
|
|
typedef struct BPy_IDProperty {
|
|
PyObject_VAR_HEAD
|
|
struct ID *id;
|
|
struct IDProperty *prop, *parent;
|
|
PyObject *data_wrap;
|
|
} BPy_IDProperty;
|
|
|
|
typedef struct BPy_IDArray {
|
|
PyObject_VAR_HEAD
|
|
struct ID *id;
|
|
struct IDProperty *prop;
|
|
} BPy_IDArray;
|
|
|
|
typedef struct BPy_IDGroup_Iter {
|
|
PyObject_VAR_HEAD
|
|
BPy_IDProperty *group;
|
|
struct IDProperty *cur;
|
|
} BPy_IDGroup_Iter;
|
|
|
|
PyObject *BPy_Wrap_IDProperty(struct ID *id, struct IDProperty *prop, struct IDProperty *parent);
|