[Bf-blender-cvs] [3ddd7e97040] master: Cleanup: style

Campbell Barton noreply at git.blender.org
Thu Mar 14 01:09:44 CET 2019


Commit: 3ddd7e970400b45e325a5e5f7c9374ad0d56bbfd
Author: Campbell Barton
Date:   Thu Mar 14 11:08:48 2019 +1100
Branches: master
https://developer.blender.org/rB3ddd7e970400b45e325a5e5f7c9374ad0d56bbfd

Cleanup: style

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

M	release/scripts/startup/bl_operators/object.py
M	release/scripts/startup/bl_operators/userpref.py
M	release/scripts/startup/bl_operators/uvcalc_follow_active.py
M	release/scripts/startup/bl_operators/wm.py

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

diff --git a/release/scripts/startup/bl_operators/object.py b/release/scripts/startup/bl_operators/object.py
index f74a783123b..65490e5f659 100644
--- a/release/scripts/startup/bl_operators/object.py
+++ b/release/scripts/startup/bl_operators/object.py
@@ -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',
diff --git a/release/scripts/startup/bl_operators/userpref.py b/release/scripts/startup/bl_operators/userpref.py
index e2e03caad12..bd27ce98018 100644
--- a/release/scripts/startup/bl_operators/userpref.py
+++ b/release/scripts/startup/bl_operators/userpref.py
@@ -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(
diff --git a/release/scripts/startup/bl_operators/uvcalc_follow_active.py b/release/scripts/startup/bl_operators/uvcalc_follow_active.py
index f20e349aeb2..cf987222750 100644
--- a/release/scripts/startup/bl_operators/uvcalc_follow_active.py
+++ b/release/scripts/startup/bl_operators/uvcalc_follow_active.py
@@ -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',
     )
 
diff --git a/release/scripts/startup/bl_operators/wm.py b/release/scripts/startup/bl_operators/wm.py
index c3c2a31c72d..cf513d61dbe 100644
--- a/release/scripts/startup/bl_operators/wm.py
+++ b/release/scripts/startup/bl_operators/wm.py
@@ -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):



More information about the Bf-blender-cvs mailing list