- new docstrings for bpy.type.Struct methods & some corrections.

- struct.path_to_id() --> path_from_id().
This commit is contained in:
2010-04-06 07:49:10 +00:00
parent 5304a65b50
commit bad41fcff5
15 changed files with 70 additions and 39 deletions

View File

@@ -481,7 +481,7 @@ def rna2sphinx(BASEPATH):
# c/python methods, only for the base class
if struct.identifier == "Struct":
for attribute, descr in bpy.types.Struct.__bases__[0].__dict__.items():
for attribute, descr in sorted(bpy.types.Struct.__bases__[0].__dict__.items()):
if type(descr) == MethodDescriptorType: # GetSetDescriptorType, GetSetDescriptorType's are not documented yet
if descr.__doc__:
write_indented_lines(" ", fw, descr.__doc__, False)