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>2010-07-15 15:51:43 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-07-15 15:51:43 +0400
commit5daf9354d255bb40e832e7e0d48008e56158e0b4 (patch)
tree1208c7b4e9ed6dfe35bce7fdf7091ae7b3d87cd0 /source/blender/python/doc/sphinx_doc_gen.py
parentdcc1e6019df2f5655fa38aa9f6c8c98e2e57e4fa (diff)
change some references to .B.blend, .Blog to new names
Diffstat (limited to 'source/blender/python/doc/sphinx_doc_gen.py')
-rw-r--r--source/blender/python/doc/sphinx_doc_gen.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/source/blender/python/doc/sphinx_doc_gen.py b/source/blender/python/doc/sphinx_doc_gen.py
index 27524c66c36..04fdedd8c8f 100644
--- a/source/blender/python/doc/sphinx_doc_gen.py
+++ b/source/blender/python/doc/sphinx_doc_gen.py
@@ -553,10 +553,9 @@ def rna2sphinx(BASEPATH):
fw(" %s\n\n" % struct.description)
# properties sorted in alphabetical order
- zip_props_ids = zip(struct.properties, [prop.identifier for prop in struct.properties])
- zip_props_ids = sorted(zip_props_ids, key=lambda p: p[1])
- sorted_struct_properties = [x[0] for x in zip_props_ids]
-
+ sorted_struct_properties = struct.properties[:]
+ sorted_struct_properties.sort(key=lambda prop: prop.identifier)
+
for prop in sorted_struct_properties:
type_descr = prop.get_type_description(class_fmt=":class:`%s`")
# readonly properties use "data" directive, variables properties use "attribute" directive