diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-09-25 09:17:23 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-09-25 09:17:23 +0400 |
commit | b3fd195665d6d00e4ad7718c5c3c0a3135a415a7 (patch) | |
tree | e8ed9811300cea0781dff5c437f9647d06093077 /release/scripts/modules/rna_xml.py | |
parent | 7fdfd26f218e0509df914e996afc15f0cbcbcc3c (diff) |
fix [#31703] modules/rna_xml.py: BoolVectorProperty and CollectionProperty
patch provided by reporter (n floyd)
Diffstat (limited to 'release/scripts/modules/rna_xml.py')
-rw-r--r-- | release/scripts/modules/rna_xml.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/release/scripts/modules/rna_xml.py b/release/scripts/modules/rna_xml.py index a259a4ec396..2170c311d96 100644 --- a/release/scripts/modules/rna_xml.py +++ b/release/scripts/modules/rna_xml.py @@ -257,7 +257,10 @@ def xml2rna(root_xml, try: value_xml_coerce = [int(v) for v in value_xml_split] except ValueError: - value_xml_coerce = [float(v) for v in value_xml_split] + try: + value_xml_coerce = [float(v) for v in value_xml_split] + except ValueError: # bool vector property + value_xml_coerce = [{'TRUE': True, 'FALSE': False}[v] for v in value_xml_split] del value_xml_split tp_name = 'ARRAY' |