PyAPI: support PyGetSetDef when extending RNA types

Support extending properties as well as methods.
This commit is contained in:
2020-05-13 15:57:29 +10:00
parent 8f4f3cce03
commit 75d0287cee
3 changed files with 19 additions and 6 deletions

View File

@@ -220,7 +220,9 @@ int pyrna_enum_value_from_id(const EnumPropertyItem *item,
int pyrna_deferred_register_class(struct StructRNA *srna, PyTypeObject *py_class);
void pyrna_struct_type_extend_capi(struct StructRNA *srna, struct PyMethodDef *py_method);
void pyrna_struct_type_extend_capi(struct StructRNA *srna,
struct PyMethodDef *py_method,
struct PyGetSetDef *py_getset);
/* called before stopping python */
void pyrna_alloc_types(void);