[Bf-extensions-cvs] [2918937] master: Fix in Show Hotkey List

Bartek Skorupa noreply at git.blender.org
Wed Nov 19 10:59:36 CET 2014


Commit: 2918937972c4b87bff41b8e0b7cdd7c9c0076ef7
Author: Bartek Skorupa
Date:   Wed Nov 19 10:59:09 2014 +0100
Branches: master
https://developer.blender.org/rBA2918937972c4b87bff41b8e0b7cdd7c9c0076ef7

Fix in Show Hotkey List

Last change in keycap item broke ability to show hotkey list in Add On
preferences. Now it's fixed.

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

M	node_efficiency_tools.py

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

diff --git a/node_efficiency_tools.py b/node_efficiency_tools.py
index f36046f..c4214dd 100644
--- a/node_efficiency_tools.py
+++ b/node_efficiency_tools.py
@@ -1058,18 +1058,18 @@ class NWNodeWrangler(bpy.types.AddonPreferences):
             col.prop(self, "hotkey_list_filter", icon="VIEWZOOM")
             col.separator()
             for hotkey in kmi_defs:
-                if hotkey[6]:
-                    hotkey_name = hotkey[6]
+                if hotkey[7]:
+                    hotkey_name = hotkey[7]
 
                     if self.hotkey_list_filter.lower() in hotkey_name.lower():
                         row = col.row(align=True)
                         row.label(hotkey_name)
                         keystr = nice_hotkey_name(hotkey[1])
-                        if hotkey[3]:
-                            keystr = "Shift " + keystr
                         if hotkey[4]:
+                            keystr = "Shift " + keystr
+                        if hotkey[5]:
                             keystr = "Alt " + keystr
-                        if hotkey[2]:
+                        if hotkey[3]:
                             keystr = "Ctrl " + keystr
                         row.label(keystr)



More information about the Bf-extensions-cvs mailing list