Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2014-01-29 19:36:42 +0400
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2014-01-29 19:36:42 +0400
commitbe849f6f7e3cef55e3bd4698402c9adc2a846cbe (patch)
tree4cae3ff7e7f6622eeb0840bcb03e201ac781ccb8
parent1e0654f162afdc75c4e4286e2bd8d276fe668f78 (diff)
Fix T37038: user preferences > input category names unnecessarily cut off.
-rw-r--r--release/scripts/modules/rna_keymap_ui.py15
1 files changed, 8 insertions, 7 deletions
diff --git a/release/scripts/modules/rna_keymap_ui.py b/release/scripts/modules/rna_keymap_ui.py
index f637b06a565..a5ae9c97d9d 100644
--- a/release/scripts/modules/rna_keymap_ui.py
+++ b/release/scripts/modules/rna_keymap_ui.py
@@ -74,14 +74,15 @@ def draw_km(display_keymaps, kc, km, children, layout, level):
row.prop(km, "show_expanded_children", text="", emboss=False)
row.label(text=km.name, text_ctxt=i18n_contexts.id_windowmanager)
- subrow = row.row()
- subrow.alignment = 'RIGHT'
+ if km.is_user_modified or km.is_modal:
+ subrow = row.row()
+ subrow.alignment = 'RIGHT'
- if km.is_user_modified:
- subrow.operator("wm.keymap_restore", text="Restore")
- if km.is_modal:
- subrow.label(text="", icon='LINKED')
- del subrow
+ if km.is_user_modified:
+ subrow.operator("wm.keymap_restore", text="Restore")
+ if km.is_modal:
+ subrow.label(text="", icon='LINKED')
+ del subrow
if km.show_expanded_children:
if children: