Fix #27490: export key configuration gave error when trying to export
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Wed, 1 Jun 2011 14:35:14 +0000 (14:35 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Wed, 1 Jun 2011 14:35:14 +0000 (14:35 +0000)
properties from an unknown (e.g. removed) operator.

release/scripts/startup/bl_ui/space_userpref_keymap.py

index 982e19e623474699a60bf218c1d908159f0a25e3..e99cefb91b8c1209ba8403231b9d553a754befac 100644 (file)
@@ -411,8 +411,8 @@ def export_properties(prefix, properties, lines=None):
     if lines is None:
         lines = []
 
-    for pname in properties.keys():
-        if not properties.is_property_hidden(pname):
+    for pname in properties.bl_rna.properties.keys():
+        if pname != "rna_type" and not properties.is_property_hidden(pname):
             value = getattr(properties, pname)
             if isinstance(value, bpy.types.OperatorProperties):
                 export_properties(prefix + "." + pname, value, lines)