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.
This commit is contained in:
2022-05-18 21:43:38 +10:00
parent 1fcdb1ea28
commit 136a06285f
3 changed files with 16 additions and 1 deletions

View File

@@ -206,6 +206,14 @@ class InfoStructRNA:
functions.append((identifier, attr))
return functions
def get_py_c_properties_getset(self):
import types
properties_getset = []
for identifier, descr in self.py_class.__dict__.items():
if type(descr) == types.GetSetDescriptorType:
properties_getset.append((identifier, descr))
return properties_getset
def __str__(self):
txt = ""