Cleanup: pep8

This commit is contained in:
2018-07-03 07:13:27 +02:00
parent 646f8bdb48
commit 105192e5a2
6 changed files with 14 additions and 15 deletions

View File

@@ -21,7 +21,7 @@
__all__ = ( __all__ = (
"find_node_input", "find_node_input",
"find_output_node", "find_output_node",
) )
# XXX Names are not unique. Returns the first match. # 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 # Return the output node to display in the UI. In case multiple node types are
# specified, node types earlier in the list get priority. # specified, node types earlier in the list get priority.
def find_output_node(ntree, nodetypes): def find_output_node(ntree, nodetypes):
if ntree: if ntree:
output_node = None output_node = None

View File

@@ -195,18 +195,18 @@ class AddObjectHelper:
self.rotation.zero() self.rotation.zero()
view_align = BoolProperty( view_align = BoolProperty(
name="Align to View", name="Align to View",
default=False, default=False,
update=view_align_update_callback, update=view_align_update_callback,
) )
location = FloatVectorProperty( location = FloatVectorProperty(
name="Location", name="Location",
subtype='TRANSLATION', subtype='TRANSLATION',
) )
rotation = FloatVectorProperty( rotation = FloatVectorProperty(
name="Rotation", name="Rotation",
subtype='EULER', subtype='EULER',
) )
@classmethod @classmethod
def poll(self, context): def poll(self, context):

View File

@@ -942,7 +942,6 @@ class Menu(StructRNA, _GenericUI, metaclass=RNAMeta):
props = row.operator(add_operator, text="", icon='ZOOMIN') props = row.operator(add_operator, text="", icon='ZOOMIN')
props.name = wm.preset_name props.name = wm.preset_name
def draw_preset(self, context): def draw_preset(self, context):
""" """
Define these on the subclass: Define these on the subclass:

View File

@@ -280,7 +280,6 @@ class DOPESHEET_HT_editor_buttons(Header):
sub.active = toolsettings.use_proportional_action sub.active = toolsettings.use_proportional_action
sub.prop(toolsettings, "proportional_edit_falloff", text="", icon_only=True) sub.prop(toolsettings, "proportional_edit_falloff", text="", icon_only=True)
row = layout.row(align=True) row = layout.row(align=True)
row.operator("action.copy", text="", icon='COPYDOWN') row.operator("action.copy", text="", icon='COPYDOWN')
row.operator("action.paste", text="", icon='PASTEDOWN') row.operator("action.paste", text="", icon='PASTEDOWN')

View File

@@ -134,7 +134,6 @@ class OUTLINER_MT_edit_datablocks(Menu):
layout.operator("outliner.drivers_delete_selected") layout.operator("outliner.drivers_delete_selected")
class OUTLINER_MT_collection_view_layer(Menu): class OUTLINER_MT_collection_view_layer(Menu):
bl_label = "View Layer" bl_label = "View Layer"

View File

@@ -101,7 +101,7 @@ def write_subimage(sub_x, sub_y, sub_w, sub_h,
sub_w, sub_h, sub_w, sub_h,
sub_x, sub_y, sub_x, sub_y,
# redundant but including to maintain consistency # redundant but including to maintain consistency
pixel_w, pixel_h, pixel_w, pixel_h,
)) ))
for y in range(sub_h): for y in range(sub_h):