Commit: 105192e5a288472fd7670a43499e44805f35b252
Author: Campbell Barton
Date: Tue Jul 3 07:13:27 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB105192e5a288472fd7670a43499e44805f35b252
Cleanup: pep8
===================================================================
M release/scripts/modules/bpy_extras/node_utils.py
M release/scripts/modules/bpy_extras/object_utils.py
M release/scripts/modules/bpy_types.py
M release/scripts/startup/bl_ui/space_dopesheet.py
M release/scripts/startup/bl_ui/space_outliner.py
M source/blender/datatoc/datatoc_icon_split.py
===================================================================
diff --git a/release/scripts/modules/bpy_extras/node_utils.py
b/release/scripts/modules/bpy_extras/node_utils.py
index 9a2be5b9f68..d459b99ddd0 100644
--- a/release/scripts/modules/bpy_extras/node_utils.py
+++ b/release/scripts/modules/bpy_extras/node_utils.py
@@ -21,7 +21,7 @@
__all__ = (
"find_node_input",
"find_output_node",
- )
+)
# XXX Names are not unique. Returns the first match.
@@ -34,6 +34,8 @@ def find_node_input(node, name):
# Return the output node to display in the UI. In case multiple node types are
# specified, node types earlier in the list get priority.
+
+
def find_output_node(ntree, nodetypes):
if ntree:
output_node = None
diff --git a/release/scripts/modules/bpy_extras/object_utils.py
b/release/scripts/modules/bpy_extras/object_utils.py
index 8eec912da93..fcecb4cdd61 100644
--- a/release/scripts/modules/bpy_extras/object_utils.py
+++ b/release/scripts/modules/bpy_extras/object_utils.py
@@ -195,18 +195,18 @@ class AddObjectHelper:
self.rotation.zero()
view_align = BoolProperty(
- name="Align to View",
- default=False,
- update=view_align_update_callback,
- )
+ name="Align to View",
+ default=False,
+ update=view_align_update_callback,
+ )
location = FloatVectorProperty(
- name="Location",
- subtype='TRANSLATION',
- )
+ name="Location",
+ subtype='TRANSLATION',
+ )
rotation = FloatVectorProperty(
- name="Rotation",
- subtype='EULER',
- )
+ name="Rotation",
+ subtype='EULER',
+ )
@classmethod
def poll(self, context):
diff --git a/release/scripts/modules/bpy_types.py
b/release/scripts/modules/bpy_types.py
index ee49e8a6630..4cc792c7cb3 100644
--- a/release/scripts/modules/bpy_types.py
+++ b/release/scripts/modules/bpy_types.py
@@ -942,7 +942,6 @@ class Menu(StructRNA, _GenericUI, metaclass=RNAMeta):
props = row.operator(add_operator, text="", icon='ZOOMIN')
props.name = wm.preset_name
-
def draw_preset(self, context):
"""
Define these on the subclass:
diff --git a/release/scripts/startup/bl_ui/space_dopesheet.py
b/release/scripts/startup/bl_ui/space_dopesheet.py
index e03d53a1870..aeda521ba04 100644
--- a/release/scripts/startup/bl_ui/space_dopesheet.py
+++ b/release/scripts/startup/bl_ui/space_dopesheet.py
@@ -280,7 +280,6 @@ class DOPESHEET_HT_editor_buttons(Header):
sub.active = toolsettings.use_proportional_action
sub.prop(toolsettings, "proportional_edit_falloff", text="",
icon_only=True)
-
row = layout.row(align=True)
row.operator("action.copy", text="", icon='COPYDOWN')
row.operator("action.paste", text="", icon='PASTEDOWN')
diff --git a/release/scripts/startup/bl_ui/space_outliner.py
b/release/scripts/startup/bl_ui/space_outliner.py
index 19f3bcd3b1f..f19b0304afa 100644
--- a/release/scripts/startup/bl_ui/space_outliner.py
+++ b/release/scripts/startup/bl_ui/space_outliner.py
@@ -134,7 +134,6 @@ class OUTLINER_MT_edit_datablocks(Menu):
layout.operator("outliner.drivers_delete_selected")
-
class OUTLINER_MT_collection_view_layer(Menu):
bl_label = "View Layer"
diff --git a/source/blender/datatoc/datatoc_icon_split.py
b/source/blender/datatoc/datatoc_icon_split.py
index faf8d57be77..e7cc3a71446 100755
--- a/source/blender/datatoc/datatoc_icon_split.py
+++ b/source/blender/datatoc/datatoc_icon_split.py
@@ -101,7 +101,7 @@ def write_subimage(sub_x, sub_y, sub_w, sub_h,
sub_w, sub_h,
sub_x, sub_y,
# redundant but including to maintain consistency
- pixel_w, pixel_h,
+ pixel_w, pixel_h,
))
for y in range(sub_h):
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs