Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2020-05-13 08:57:29 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-05-13 08:57:29 +0300
commit75d0287cee1aae1a94e46d3fb90379ce016eda8c (patch)
treeb2c7cb52b5ff9803b56541e87906bda9eee56c30 /source/blender/python/intern/bpy_rna.h
parent8f4f3cce0393f2fdbf91133feb147096c53fee3d (diff)
PyAPI: support PyGetSetDef when extending RNA types
Support extending properties as well as methods.
Diffstat (limited to 'source/blender/python/intern/bpy_rna.h')
-rw-r--r--source/blender/python/intern/bpy_rna.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/python/intern/bpy_rna.h b/source/blender/python/intern/bpy_rna.h
index 3f73ea20205..652d65fe64c 100644
--- a/source/blender/python/intern/bpy_rna.h
+++ b/source/blender/python/intern/bpy_rna.h
@@ -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);