Cleanup: style
authorCampbell Barton <ideasman42@gmail.com>
Tue, 9 Apr 2019 13:16:11 +0000 (23:16 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 9 Apr 2019 14:06:13 +0000 (00:06 +1000)
release/scripts/startup/bl_app_templates_system/Sculpting/__init__.py
release/scripts/startup/bl_app_templates_system/Video_Editing/__init__.py
release/scripts/startup/bl_operators/object.py
release/scripts/startup/bl_operators/object_quick_effects.py
release/scripts/startup/bl_operators/uvcalc_smart_project.py
release/scripts/startup/bl_operators/wm.py
release/scripts/startup/bl_ui/properties_data_armature.py
release/scripts/startup/bl_ui/properties_data_camera.py
release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
release/scripts/startup/bl_ui/space_view3d.py

index bf32d6672ca4420d0292a30ffaf8ef6c1d6e7433..4d1361ed22ab53ae3ca54de9353d4ff964288e76 100644 (file)
@@ -35,8 +35,10 @@ def load_handler(dummy):
         bpy.ops.mesh.subdivide(number_cuts=6, smoothness=1.0)
     bpy.ops.object.mode_set(mode='SCULPT')
 
+
 def register():
     bpy.app.handlers.load_factory_startup_post.append(load_handler)
 
+
 def unregister():
     bpy.app.handlers.load_factory_startup_post.remove(load_handler)
index 4c769c691656acf4d0808f1b28766d75b5d750be..bfad66ec6cdaee6c07f64b1fae32b840510693a9 100644 (file)
@@ -31,8 +31,10 @@ def load_handler(dummy):
             params = space.params
             params.use_filter_folder = True
 
+
 def register():
     bpy.app.handlers.load_factory_startup_post.append(load_handler)
 
+
 def unregister():
     bpy.app.handlers.load_factory_startup_post.remove(load_handler)
index f2124c094a74b4a0a5f3c30983c65dd622008a7d..c05ee01c72d3e0f5a643257072c73937c906d27b 100644 (file)
@@ -324,15 +324,15 @@ class ShapeTransfer(Operator):
             ('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",
index 35807761567c62a2c5248962fe8f757b3dd3968e..14b96e1d5c105023eb4aa9eac71c1abaff353bfc 100644 (file)
@@ -46,11 +46,13 @@ def object_ensure_material(obj, mat_name):
             obj.data.materials.append(mat)
     return mat
 
+
 class ObjectModeOperator:
     @classmethod
     def poll(cls, context):
         return context.mode == 'OBJECT'
 
+
 class QuickFur(ObjectModeOperator, Operator):
     bl_idname = "object.quick_fur"
     bl_label = "Quick Fur"
@@ -507,10 +509,11 @@ class QuickFluid(ObjectModeOperator, Operator):
         # and scale with initial velocity
         v = 0.5 * self.initial_velocity
         obj.location = 0.5 * (max_co + min_co) + Vector((0.0, 0.0, -1.0)) + v
-        obj.scale = (0.5 * (max_co - min_co) +
-                     Vector((1.0, 1.0, 2.0)) +
-                     Vector((abs(v[0]), abs(v[1]), abs(v[2])))
-                     )
+        obj.scale = (
+            0.5 * (max_co - min_co) +
+            Vector((1.0, 1.0, 2.0)) +
+            Vector((abs(v[0]), abs(v[1]), abs(v[2])))
+        )
 
         # setup smoke domain
         bpy.ops.object.modifier_add(type='FLUID_SIMULATION')
index 58c915ce02939ede99feb8834afd952fa3a14f8f..528513aa3019cddb13ee57c29794d5f12e8a1e06 100644 (file)
@@ -583,10 +583,10 @@ def packIslands(islandList):
         w, h = maxx - minx, maxy - miny
 
         if USER_ISLAND_MARGIN:
-            minx -= USER_ISLAND_MARGIN * w/2
-            miny -= USER_ISLAND_MARGIN * h/2
-            maxx += USER_ISLAND_MARGIN * w/2
-            maxy += USER_ISLAND_MARGIN * h/2
+            minx -= USER_ISLAND_MARGIN * w / 2
+            miny -= USER_ISLAND_MARGIN * h / 2
+            maxx += USER_ISLAND_MARGIN * w / 2
+            maxy += USER_ISLAND_MARGIN * h / 2
 
             # recalc width and height
             w, h = maxx - minx, maxy - miny
index c6f79d49d415178474d9e866234be1f241812b46..de811d42e0054de2c2eb841e76f8caa722b21fdf 100644 (file)
@@ -1423,7 +1423,6 @@ class WM_OT_sysinfo(Operator):
         return {'RUNNING_MODAL'}
 
 
-
 class WM_OT_operator_cheat_sheet(Operator):
     """List all the Operators in a text-block, useful for scripting"""
     bl_idname = "wm.operator_cheat_sheet"
@@ -1484,7 +1483,6 @@ class WM_OT_owner_disable(Operator):
         return {'FINISHED'}
 
 
-
 class WM_OT_tool_set_by_id(Operator):
     """Set the tool by name (for keymaps)"""
     bl_idname = "wm.tool_set_by_id"
@@ -1666,7 +1664,7 @@ class WM_MT_splash(Menu):
         # Draw setup screen if no preferences have been saved yet.
         import os
 
-        userconfig_path = bpy.utils.user_resource('CONFIG');
+        userconfig_path = bpy.utils.user_resource('CONFIG')
         userdef_path = os.path.join(userconfig_path, "userpref.blend")
 
         if not os.path.isfile(userdef_path):
index e80f104b3936b49c6b21faa8c0b38020c34012d4..4e10ac205bf88a2543c1ad6f43a87e9adf131f66 100644 (file)
@@ -26,6 +26,7 @@ from .properties_animviz import (
     MotionPathButtonsPanel_display,
 )
 
+
 class ArmatureButtonsPanel:
     bl_space_type = 'PROPERTIES'
     bl_region_type = 'WINDOW'
index 8cae779469a35effd81d6debdd516a5379dd7754..84fe9fb1f3eee3f9f17eff5dc036814f2388df98 100644 (file)
@@ -386,6 +386,7 @@ class DATA_PT_camera_display(CameraButtonsPanel, Panel):
         col = flow.column()
         col.prop(cam, "show_name", text="Name")
 
+
 class DATA_PT_camera_display_composition_guides(CameraButtonsPanel, Panel):
     bl_label = "Composition Guides"
     bl_parent_id = "DATA_PT_camera_display"
index 42953a05ca6bf3322e575637ffa5550c7e5a6306..16bc3ad29faeae774852abf2b30624e8964d2d2c 100644 (file)
@@ -121,15 +121,13 @@ class _defs_view3d_generic:
             else:
                 kmi_add = None
                 kmi_remove = None
-            return (
-                tip_(
+            return tip_(
                 "Measure distance and angles.\n"
                 "\u2022 {} anywhere for new measurement.\n"
                 "\u2022 Drag ruler segment to measure an angle.\n"
                 "\u2022 {} to remove the active ruler.\n"
                 "\u2022 Ctrl while dragging to snap.\n"
                 "\u2022 Shift while dragging to measure surface thickness."
-                )
             ).format(
                 kmi_to_string_or_none(kmi_add),
                 kmi_to_string_or_none(kmi_remove),
index 21b423923df391efc23ec33da73bd67605bca214..81c987406523c74fcfbc0d5890621734f5c6f2c7 100644 (file)
@@ -5862,6 +5862,7 @@ class VIEW3D_PT_sculpt_context_menu(Panel):
         if capabilities.has_height:
             layout.prop(brush, "height", slider=True, text="Height")
 
+
 class TOPBAR_PT_gpencil_materials(GreasePencilMaterialsPanel, Panel):
     bl_space_type = 'VIEW_3D'
     bl_region_type = 'HEADER'