[Bf-blender-cvs] [be849f6] master: Fix T37038: user preferences > input category names unnecessarily cut off.

Brecht Van Lommel noreply at git.blender.org
Wed Jan 29 16:52:44 CET 2014


Commit: be849f6f7e3cef55e3bd4698402c9adc2a846cbe
Author: Brecht Van Lommel
Date:   Wed Jan 29 16:36:42 2014 +0100
https://developer.blender.org/rBbe849f6f7e3cef55e3bd4698402c9adc2a846cbe

Fix T37038: user preferences > input category names unnecessarily cut off.

===================================================================

M	release/scripts/modules/rna_keymap_ui.py

===================================================================

diff --git a/release/scripts/modules/rna_keymap_ui.py b/release/scripts/modules/rna_keymap_ui.py
index f637b06..a5ae9c9 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:




More information about the Bf-blender-cvs mailing list