diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-07-23 13:33:58 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-07-23 13:33:58 +0400 |
commit | 444d06af32f024a5a7e70c79f367f0f933271534 (patch) | |
tree | 8266b6659a045062e8ffe524310adf8fed21aff7 | |
parent | 9a0e0027f810be044767c946c6e93cdcc484dd91 (diff) |
2.5: change a user preferences settings from .enabled to .active, it's nicer
if the button is grayed out but still editable.
-rw-r--r-- | release/scripts/ui/space_userpref.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/release/scripts/ui/space_userpref.py b/release/scripts/ui/space_userpref.py index 2429f6e472c..b3629b03c22 100644 --- a/release/scripts/ui/space_userpref.py +++ b/release/scripts/ui/space_userpref.py @@ -170,7 +170,7 @@ class USERPREF_PT_interface(bpy.types.Panel): col.prop(view, "show_mini_axis", text="Display Mini Axis") sub = col.column() - sub.enabled = view.show_mini_axis + sub.active = view.show_mini_axis sub.prop(view, "mini_axis_size", text="Size") sub.prop(view, "mini_axis_brightness", text="Brightness") @@ -216,7 +216,7 @@ class USERPREF_PT_interface(bpy.types.Panel): #col.prop(view, "open_right_mouse_delay", text="Hold RMB") col.prop(view, "use_manipulator") sub = col.column() - sub.enabled = view.use_manipulator + sub.active = view.use_manipulator sub.prop(view, "manipulator_size", text="Size") sub.prop(view, "manipulator_handle_size", text="Handle Size") sub.prop(view, "manipulator_hotspot", text="Hotspot") @@ -720,7 +720,7 @@ class USERPREF_PT_file(bpy.types.Panel): col.prop(paths, "save_preview_images") col.prop(paths, "auto_save_temporary_files") sub = col.column() - sub.enabled = paths.auto_save_temporary_files + sub.active = paths.auto_save_temporary_files sub.prop(paths, "auto_save_time", text="Timer (mins)") from space_userpref_keymap import InputKeyMapPanel @@ -748,7 +748,7 @@ class USERPREF_PT_input(InputKeyMapPanel): sub.label(text="Mouse:") sub1 = sub.column() - sub1.enabled = (inputs.select_mouse == 'RIGHT') + sub1.active = (inputs.select_mouse == 'RIGHT') sub1.prop(inputs, "emulate_3_button_mouse") sub.prop(inputs, "continuous_mouse") |