Cleanup: style

This commit is contained in:
Campbell Barton
2019-03-14 11:08:48 +11:00
parent a38205fbd8
commit 3ddd7e9704
4 changed files with 37 additions and 29 deletions

View File

@@ -161,9 +161,10 @@ class SelectHierarchy(Operator):
bl_options = {'REGISTER', 'UNDO'}
direction: EnumProperty(
items=(('PARENT', "Parent", ""),
('CHILD', "Child", ""),
),
items=(
('PARENT', "Parent", ""),
('CHILD', "Child", ""),
),
name="Direction",
description="Direction to select in the hierarchy",
default='PARENT',
@@ -319,19 +320,20 @@ class ShapeTransfer(Operator):
bl_options = {'REGISTER', 'UNDO'}
mode: EnumProperty(
items=(('OFFSET',
"Offset",
"Apply the relative positional offset",
),
('RELATIVE_FACE',
"Relative Face",
"Calculate relative position (using faces)",
),
('RELATIVE_EDGE',
"Relative Edge",
"Calculate relative position (using edges)",
),
),
items=(
('OFFSET',
"Offset",
"Apply the relative positional offset",
),
('RELATIVE_FACE',
"Relative Face",
"Calculate relative position (using faces)",
),
('RELATIVE_EDGE',
"Relative Edge",
"Calculate relative position (using edges)",
),
),
name="Transformation Mode",
description="Relative shape positions to the new shape method",
default='OFFSET',

View File

@@ -542,8 +542,10 @@ class PREFERENCES_OT_addon_install(Operator):
)
target: EnumProperty(
name="Target Path",
items=(('DEFAULT', "Default", ""),
('PREFS', "User Prefs", "")),
items=(
('DEFAULT', "Default", ""),
('PREFS', "User Prefs", ""),
),
)
filepath: StringProperty(

View File

@@ -111,9 +111,11 @@ def extend(obj, operator, EXTEND_MODE):
else:
break
def extrapolate_uv(fac,
l_a_outer, l_a_inner,
l_b_outer, l_b_inner):
def extrapolate_uv(
fac,
l_a_outer, l_a_inner,
l_b_outer, l_b_inner,
):
l_b_inner[:] = l_a_inner
l_b_outer[:] = l_a_inner + ((l_a_inner - l_a_outer) * fac)
@@ -254,10 +256,11 @@ class FollowActiveQuads(Operator):
mode: bpy.props.EnumProperty(
name="Edge Length Mode",
description="Method to space UV edge loops",
items=(('EVEN', "Even", "Space all UVs evenly"),
('LENGTH', "Length", "Average space UVs edge length of each loop"),
('LENGTH_AVERAGE', "Length Average", "Average space UVs edge length of each loop"),
),
items=(
('EVEN', "Even", "Space all UVs evenly"),
('LENGTH', "Length", "Average space UVs edge length of each loop"),
('LENGTH_AVERAGE', "Length Average", "Average space UVs edge length of each loop"),
),
default='LENGTH_AVERAGE',
)

View File

@@ -656,10 +656,11 @@ class WM_OT_context_collection_boolean_set(Operator):
type: EnumProperty(
name="Type",
items=(('TOGGLE', "Toggle", ""),
('ENABLE', "Enable", ""),
('DISABLE', "Disable", ""),
),
items=(
('TOGGLE', "Toggle", ""),
('ENABLE', "Enable", ""),
('DISABLE', "Disable", ""),
),
)
def execute(self, context):