bugfix [#26094] Going to Bone Roll menu brings up python error

also correct for pep8 warnings.
This commit is contained in:
Campbell Barton
2011-02-16 02:25:03 +00:00
parent 78c135d93e
commit fee5363912
15 changed files with 38 additions and 44 deletions

View File

@@ -638,11 +638,11 @@ class USERPREF_PT_theme(bpy.types.Panel):
elif theme.theme_area == 'COLOR_SETS':
col = split.column()
for i,ui in enumerate(theme.bone_color_sets):
col.label(text="Color Set %d:" % (i+1)) # i starts from 0
for i, ui in enumerate(theme.bone_color_sets):
col.label(text="Color Set %d:" % (i + 1)) # i starts from 0
row = col.row()
subsplit = row.split(percentage=0.95)
padding = subsplit.split(percentage=0.15)
@@ -651,7 +651,7 @@ class USERPREF_PT_theme(bpy.types.Panel):
colsub.row().prop(ui, "normal")
colsub.row().prop(ui, "select")
colsub.row().prop(ui, "active")
subsplit = row.split(percentage=0.85)
padding = subsplit.split(percentage=0.15)