Fix #23384: python errors in input tab in user preferences.
This commit is contained in:
@@ -152,7 +152,7 @@ class InputKeyMapPanel(bpy.types.Panel):
|
|||||||
indentpx = 16
|
indentpx = 16
|
||||||
if level == 0:
|
if level == 0:
|
||||||
level = 0.0001 # Tweak so that a percentage of 0 won't split by half
|
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)
|
split = layout.split(percentage=indent)
|
||||||
col = split.column()
|
col = split.column()
|
||||||
|
Reference in New Issue
Block a user