Fix T46929: error exporting Key configuration.

This commit is contained in:
Bastien Montagne 2015-12-06 17:52:50 +01:00
parent b36a0c44bb
commit e1698860ad
Notes: blender-bot 2023-10-04 09:42:55 +02:00
Referenced by issue #46929, error exporting Key configuration
1 changed files with 3 additions and 4 deletions

View File

@ -163,13 +163,12 @@ def _export_properties(prefix, properties, kmi_id, lines=None):
def string_value(value):
if isinstance(value, str) or isinstance(value, bool) or isinstance(value, float) or isinstance(value, int):
result = repr(value)
return repr(value)
elif getattr(value, '__len__', False):
return repr(list(value))
else:
print("Export key configuration: can't write ", value)
return result
print("Export key configuration: can't write ", value)
return ""
for pname in properties.bl_rna.properties.keys():
if pname != "rna_type":