- 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.
This commit is contained in:
2010-08-17 02:42:30 +00:00
parent d03c94d8d9
commit 5f7045f7af
4 changed files with 658 additions and 648 deletions

View File

@@ -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: