pep8 checker, mostly pedantic style changes but also found an error in mesh_utils...
[blender.git] / release / scripts / startup / bl_ui / space_userpref.py
index 67174db1d3db5735f7745d28680cd3fa7bd84131..a81561de93fabb4bb20ebd3945d1fadd61281f3f 100644 (file)
@@ -21,7 +21,7 @@ import bpy
 import os
 import addon_utils
 
-from bpy.props import StringProperty, BoolProperty, EnumProperty
+from bpy.props import StringProperty, BoolProperty
 
 
 def ui_items_general(col, context):
@@ -120,6 +120,18 @@ class USERPREF_MT_interaction_presets(bpy.types.Menu):
     draw = bpy.types.Menu.draw_preset
 
 
+class USERPREF_MT_appconfigs(bpy.types.Menu):
+    bl_label = "AppPresets"
+    preset_subdir = "keyconfig"
+    preset_operator = "wm.appconfig_activate"
+
+    def draw(self, context):
+        props = self.layout.operator("wm.appconfig_default", text="Blender (default)")
+
+        # now draw the presets
+        bpy.types.Menu.draw_preset(self, context)
+
+
 class USERPREF_MT_splash(bpy.types.Menu):
     bl_label = "Splash"
 
@@ -134,7 +146,7 @@ class USERPREF_MT_splash(bpy.types.Menu):
         # text = bpy.path.display_name(context.window_manager.keyconfigs.active.name)
         # if not text:
         #     text = "Blender (default)"
-        row.menu("USERPREF_MT_keyconfigs", text="Preset")
+        row.menu("USERPREF_MT_appconfigs", text="Preset")
 
 
 class USERPREF_PT_interface(bpy.types.Panel):
@@ -637,7 +649,7 @@ class USERPREF_PT_theme(bpy.types.Panel):
 
             layout.separator()
             layout.separator()
-        elif theme.theme_area == 'COLOR_SETS':
+        elif theme.theme_area == 'BONE_COLOR_SETS':
             col = split.column()
 
             for i, ui in enumerate(theme.bone_color_sets):