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 /release | |
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 'release')
-rw-r--r-- | release/scripts/modules/rna_info.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/release/scripts/modules/rna_info.py b/release/scripts/modules/rna_info.py index 5d769d01641..296ec87fcb4 100644 --- a/release/scripts/modules/rna_info.py +++ b/release/scripts/modules/rna_info.py @@ -636,7 +636,11 @@ if __name__ == "__main__": for prop_id, prop in sorted(props): # if prop.type == 'boolean': # continue - data.append("%s.%s -> %s: %s%s %s" % (struct_id_str, prop.identifier, prop.identifier, prop.type, ", (read-only)" if prop.is_readonly else "", prop.description)) + prop_type = prop.type + if prop.array_length > 0: + prop_type += "[%d]" % prop.array_length + + data.append("%s.%s -> %s: %s%s %s" % (struct_id_str, prop.identifier, prop.identifier, prop_type, ", (read-only)" if prop.is_readonly else "", prop.description)) data.sort() if bpy.app.background: |