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
path: root/doc
diff options
context:
space:
mode:
authorCampbell Barton <campbell@blender.org>2022-05-18 14:43:38 +0300
committerCampbell Barton <campbell@blender.org>2022-05-18 14:43:38 +0300
commit136a06285f0e953f65dc432a4dba1ff3d1f781ee (patch)
tree347ef953d0aa5a7771ecc924d6988c443b46831b /doc
parent1fcdb1ea28eb995f7c373393e3838a12615c10af (diff)
Fix T88792: WindowManager.clipboard missing in Python API docs
Support RNA types using the Py/C-API PyGetSetDef defined properties. Currently `WindowManager.clipboard` is the only instance of this.
Diffstat (limited to 'doc')
-rw-r--r--doc/python_api/sphinx_doc_gen.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/python_api/sphinx_doc_gen.py b/doc/python_api/sphinx_doc_gen.py
index eba12b75b63..d87d8b71ce5 100644
--- a/doc/python_api/sphinx_doc_gen.py
+++ b/doc/python_api/sphinx_doc_gen.py
@@ -1474,6 +1474,12 @@ def pyrna2sphinx(basepath):
pyprop2sphinx(" ", fw, identifier, py_prop)
del py_properties, py_prop
+ # C/Python attributes: `GetSetDescriptorType`.
+ key = descr = None
+ for key, descr in sorted(struct.get_py_c_properties_getset()):
+ py_descr2sphinx(" ", fw, descr, "bpy.types", struct_id, key)
+ del key, descr
+
for func in struct.functions:
args_str = ", ".join(prop.get_arg_default(force=False) for prop in func.args)