Fix #23384: python errors in input tab in user preferences.

This commit is contained in:
Brecht Van Lommel
2010-08-20 10:02:21 +00:00
parent 4c094d700e
commit 0db0b14a52

View File

@@ -152,7 +152,7 @@ class InputKeyMapPanel(bpy.types.Panel):
indentpx = 16
if level == 0:
level = 0.0001 # Tweak so that a percentage of 0 won't split by half
indent = level * indentpx / bpy.context.region.offset
indent = level * indentpx / bpy.context.region.width
split = layout.split(percentage=indent)
col = split.column()