diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-08-17 06:42:30 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-08-17 06:42:30 +0400 |
commit | 5f7045f7afb0034a91b4474e8645d09f371ccfcf (patch) | |
tree | 533db2cab3270ab9bf0ef267e173bbaa30fb86b5 /source/blender/makesrna/rna_cleanup/rna_cleaner.py | |
parent | d03c94d8d95513fb1593a61391ec152cbc4bc39f (diff) |
- rna_info.py now outputs array length with types eg. float[16].
- corrected rna property name Controller.states -> state (pointed out by Dalai).
- rna_cleaner_merge script now only merges comment and new name.
Diffstat (limited to 'source/blender/makesrna/rna_cleanup/rna_cleaner.py')
-rwxr-xr-x | source/blender/makesrna/rna_cleanup/rna_cleaner.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/makesrna/rna_cleanup/rna_cleaner.py b/source/blender/makesrna/rna_cleanup/rna_cleaner.py index ed483deb889..a63a715a13a 100755 --- a/source/blender/makesrna/rna_cleanup/rna_cleaner.py +++ b/source/blender/makesrna/rna_cleanup/rna_cleaner.py @@ -253,6 +253,13 @@ def write_files(basename, props_list, props_length_max): props_list = [['NOTE', 'CHANGED', 'CLASS', 'FROM', 'TO', 'KEYWORD-CHECK', 'TYPE', 'DESCRIPTION']] + props_list for props in props_list: #txt + + # FOR PY OUTPUT! + ''' + if props[3] == props[4]: txt += "#" + else: txt += " " + ''' + if props[0] != '': txt += '%s * ' % props[0] # comment txt += '%s.%s -> %s: %s "%s"\n' % tuple(props[2:5] + props[6:]) # skipping keyword-check # rna_api |