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/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2009-12-09 15:00:28 +0300
committerCampbell Barton <ideasman42@gmail.com>2009-12-09 15:00:28 +0300
commit0e713ba1d01c6bca4052b19f72045415cd6fea70 (patch)
tree770d347aa10b2261bf8979f639e7e1d30f452c90 /source
parent9bc23bd616ffec08af43258ffe3b8bfbf2e0065f (diff)
- rewrote arm rig so it creates 2 chains and blend them automatically (like the leg)
- use reverse order for palm fingers (pointer first) - allow copying bone class instances to exclude some bones - doc generation had a python error (incedently updated online docs linked from the splash)
Diffstat (limited to 'source')
-rw-r--r--source/blender/python/epy_doc_gen.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/source/blender/python/epy_doc_gen.py b/source/blender/python/epy_doc_gen.py
index f16c7504cb2..8783cec93ab 100644
--- a/source/blender/python/epy_doc_gen.py
+++ b/source/blender/python/epy_doc_gen.py
@@ -691,8 +691,15 @@ def op2epy(BASEPATH):
operators = dir(op_mod)
for op in sorted(operators):
# rna = getattr(bpy.types, op).bl_rna
- rna = getattr(op_mod, op).get_rna()
- write_func(rna, '', out, 'OPERATOR')
+ try:
+ rna = getattr(op_mod, op).get_rna()
+ except AttributeError:
+ rna = None
+ except TypeError:
+ rna = None
+
+ if rna:
+ write_func(rna, '', out, 'OPERATOR')
out.write('\n')
out.close()