Cleanup: pep8
authorCampbell Barton <ideasman42@gmail.com>
Wed, 26 Sep 2018 23:41:18 +0000 (09:41 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 26 Sep 2018 23:41:18 +0000 (09:41 +1000)
doc/python_api/examples/gpu.types.GPUOffScreen.py
release/scripts/startup/bl_operators/uvcalc_follow_active.py
release/scripts/startup/bl_ui/properties_grease_pencil_common.py
release/scripts/startup/bl_ui/properties_material_gpencil.py
release/scripts/startup/bl_ui/space_clip.py
release/scripts/startup/bl_ui/space_nla.py
release/scripts/startup/bl_ui/space_view3d.py

index d927e393b9689d2b157eeab21421b71fd38170f4..aa9514d11b282b6eb61a25caa63e6e7c1967124e 100644 (file)
@@ -33,9 +33,9 @@ void main()
 g_plane_vertices = np.array([
     ([-1.0, -1.0], [0.0, 0.0]),
     ([1.0, -1.0], [1.0, 0.0]),
-    ([1.0,  1.0], [1.0, 1.0]),
-    ([1.0,  1.0], [1.0, 1.0]),
-    ([-1.0,  1.0], [0.0, 1.0]),
+    ([1.0, 1.0], [1.0, 1.0]),
+    ([1.0, 1.0], [1.0, 1.0]),
+    ([-1.0, 1.0], [0.0, 1.0]),
     ([-1.0, -1.0], [0.0, 0.0]),
 ], [('pos', 'f4', 2), ('uv', 'f4', 2)])
 
@@ -162,20 +162,20 @@ class VIEW3D_OT_draw_offscreen(bpy.types.Operator):
 
             format = gpu.types.GPUVertFormat()
             pos_id = format.attr_add(
-                    id="pos",
-                    comp_type="F32",
-                    len=2,
-                    fetch_mode="FLOAT")
+                id="pos",
+                comp_type="F32",
+                len=2,
+                fetch_mode="FLOAT")
 
             uv_id = format.attr_add(
-                    id="texCoord",
-                    comp_type="F32",
-                    len=2,
-                    fetch_mode="FLOAT")
+                id="texCoord",
+                comp_type="F32",
+                len=2,
+                fetch_mode="FLOAT")
 
             vbo = gpu.types.GPUVertBuf(
-                    len=len(g_plane_vertices),
-                    format=format)
+                len=len(g_plane_vertices),
+                format=format)
 
             vbo.fill(id=pos_id, data=g_plane_vertices["pos"])
             vbo.fill(id=uv_id, data=g_plane_vertices["uv"])
index 38af5c69ef91218cfc16187649c6c9a3eebe6b57..58d604264641af5745249aa1ac8d1ac47fb50d26 100644 (file)
@@ -25,10 +25,11 @@ import bpy
 from bpy.types import Operator
 
 
-STATUS_OK =               (1 << 0)
-STATUS_ERR_ACTIVE_FACE =  (1 << 1)
+STATUS_OK = (1 << 0)
+STATUS_ERR_ACTIVE_FACE = (1 << 1)
 STATUS_ERR_NOT_SELECTED = (1 << 2)
-STATUS_ERR_NOT_QUAD =     (1 << 3)
+STATUS_ERR_NOT_QUAD = (1 << 3)
+
 
 def extend(obj, operator, EXTEND_MODE):
     import bmesh
index c31c982eb87a26d420adc33b5e73130a26c0ad10..188b0fbd65a42cfdc4be74be153374e54428b9c1 100644 (file)
@@ -267,12 +267,12 @@ class GreasePencilStrokeSculptPanel:
             layout.row().prop(brush, "direction", expand=True)
         elif tool == 'PINCH':
             row = layout.row(align=True)
-            row.prop_enum(brush, "direction",  value='ADD', text="Pinch")
-            row.prop_enum(brush, "direction",  value='SUBTRACT', text="Inflate")
+            row.prop_enum(brush, "direction", value='ADD', text="Pinch")
+            row.prop_enum(brush, "direction", value='SUBTRACT', text="Inflate")
         elif settings.tool == 'TWIST':
             row = layout.row(align=True)
-            row.prop_enum(brush, "direction",  value='ADD', text="CCW")
-            row.prop_enum(brush, "direction",  value='SUBTRACT', text="CW")
+            row.prop_enum(brush, "direction", value='ADD', text="CCW")
+            row.prop_enum(brush, "direction", value='SUBTRACT', text="CW")
 
 
 class GreasePencilSculptOptionsPanel:
index c9cdd955ec7f24467b65d475328ae072a63bca0e..933449c5adb0515df9d55118c18839d5a2bdfb7e 100644 (file)
@@ -147,8 +147,8 @@ class MATERIAL_PT_gpencil_slots(Panel):
             if gpd.use_stroke_edit_mode:
                 row = layout.row(align=True)
                 row.operator("gpencil.stroke_change_color", text="Assign")
-                row.operator("gpencil.color_select", text="Select").deselect=False
-                row.operator("gpencil.color_select", text="Deselect").deselect=True
+                row.operator("gpencil.color_select", text="Select").deselect = False
+                row.operator("gpencil.color_select", text="Deselect").deselect = True
 
         elif mat:
             row.template_ID(space, "pin_id")
index 81feab206eda5ffe3c46a9be933d5339ce682bb8..05baf619b7c47e19c4d74279072d7c0a44b870a6 100644 (file)
@@ -1438,6 +1438,7 @@ class CLIP_MT_stabilize_2d_rotation_specials(Menu):
 
         layout.operator("clip.stabilize_2d_rotation_select")
 
+
 class CLIP_MT_pivot_pie(Menu):
     bl_label = "Pivot Point"
 
@@ -1451,7 +1452,6 @@ class CLIP_MT_pivot_pie(Menu):
         pie.prop_enum(context.space_data, "pivot_point", value='MEDIAN_POINT')
 
 
-
 classes = (
     CLIP_UL_tracking_objects,
     CLIP_HT_header,
index 69413d46c1f1b33d15a640f6ebc1af0ac8e7e9d6..38b6aef99acf421073d84e61ea7910253377ef1b 100644 (file)
@@ -232,6 +232,7 @@ class NLA_MT_edit_transform(Menu):
         layout.operator("transform.transform", text="Extend").mode = 'TIME_EXTEND'
         layout.operator("transform.transform", text="Scale").mode = 'TIME_SCALE'
 
+
 class NLA_MT_snap_pie(Menu):
     bl_label = "Snap"
 
index 8a3442f35e50a91b1050a301feb88d38cc3385bb..6877a45013ada1ac0034ff14280d5df5f0189ddb 100644 (file)
@@ -3822,7 +3822,6 @@ class VIEW3D_MT_pivot_pie(Menu):
             pie.prop(context.scene.tool_settings, "use_transform_pivot_point_align", text="Center Points Only")
 
 
-
 class VIEW3D_MT_orientations_pie(Menu):
     bl_label = "Orientation"
 
@@ -3851,6 +3850,7 @@ class VIEW3D_MT_snap_pie(Menu):
         pie.operator("view3d.snap_cursor_to_center", text="Cursor to Center", icon='CURSOR')
         pie.operator("view3d.snap_cursor_to_active", text="Cursor to Active", icon='CURSOR')
 
+
 class VIEW3D_MT_proportional_editing_falloff_pie(Menu):
     bl_label = "Proportional Editing Falloff"