From 5f7045f7afb0034a91b4474e8645d09f371ccfcf Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 17 Aug 2010 02:42:30 +0000 Subject: - 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. --- release/scripts/modules/rna_info.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'release/scripts/modules/rna_info.py') 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: -- cgit v1.2.3