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:
@@ -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 = ""
|
||||
|
||||
Reference in New Issue
Block a user