Cleanup: use trailing commas for multi-line arguments

This commit is contained in:
Campbell Barton 2019-06-21 08:36:03 +10:00
parent 91b8e24db3
commit d2e474d043
7 changed files with 21 additions and 20 deletions

@ -126,7 +126,7 @@ class SelectCamera(Operator):
extend: BoolProperty(
name="Extend",
description="Extend the selection",
default=False
default=False,
)
def execute(self, context):
@ -887,7 +887,7 @@ class LoadImageAsEmpty:
view_align: BoolProperty(
name="Align to view",
default=True
default=True,
)
@classmethod

@ -436,7 +436,7 @@ class AddPresetTrackingCamera(AddPresetBase, Operator):
name="Include Focal Length",
description="Include focal length into the preset",
options={'SKIP_SAVE'},
default=True
default=True,
)
@property

@ -233,15 +233,16 @@ class prettyface:
return self.width, self.height
def lightmap_uvpack(meshes,
PREF_SEL_ONLY=True,
PREF_NEW_UVLAYER=False,
PREF_PACK_IN_ONE=False,
PREF_APPLY_IMAGE=False,
PREF_IMG_PX_SIZE=512,
PREF_BOX_DIV=8,
PREF_MARGIN_DIV=512
):
def lightmap_uvpack(
meshes,
PREF_SEL_ONLY=True,
PREF_NEW_UVLAYER=False,
PREF_PACK_IN_ONE=False,
PREF_APPLY_IMAGE=False,
PREF_IMG_PX_SIZE=512,
PREF_BOX_DIV=8,
PREF_MARGIN_DIV=512,
):
"""
BOX_DIV if the maximum division of the UV map that
a box may be consolidated into.

@ -1011,7 +1011,7 @@ class SmartProject(Operator):
use_aspect: BoolProperty(
name="Correct Aspect",
description="Map UVs taking image aspect ratio into account",
default=True
default=True,
)
stretch_to_bounds: BoolProperty(
name="Stretch to UV Bounds",
@ -1029,8 +1029,8 @@ class SmartProject(Operator):
self.angle_limit,
self.user_area_weight,
self.use_aspect,
self.stretch_to_bounds
)
self.stretch_to_bounds,
)
return {'FINISHED'}
def invoke(self, context, _event):

@ -135,7 +135,7 @@ def point_cache_ui(self, cache, enabled, cachetype):
row = layout.row()
row.template_list(
"UI_UL_list", "point_caches", cache, "point_caches",
cache.point_caches, "active_index", rows=1
cache.point_caches, "active_index", rows=1,
)
col = row.column(align=True)
col.operator("ptcache.add", icon='ADD', text="")

@ -150,7 +150,7 @@ class PHYSICS_PT_dynamic_paint_settings(PhysicButtonsPanel, Panel):
row = layout.row()
row.template_list(
"PHYSICS_UL_dynapaint_surfaces", "", canvas, "canvas_surfaces",
canvas.canvas_surfaces, "active_index", rows=1
canvas.canvas_surfaces, "active_index", rows=1,
)
col = row.column(align=True)
@ -163,7 +163,7 @@ class PHYSICS_PT_dynamic_paint_settings(PhysicButtonsPanel, Panel):
if surface:
flow = layout.grid_flow(
row_major=True, columns=0, even_columns=True, even_rows=False, align=False
row_major=True, columns=0, even_columns=True, even_rows=False, align=False,
)
col = flow.column()
@ -191,7 +191,7 @@ class PHYSICS_PT_dynamic_paint_settings(PhysicButtonsPanel, Panel):
layout.use_property_split = True
flow = layout.grid_flow(
row_major=True, columns=0, even_columns=True, even_rows=False, align=False
row_major=True, columns=0, even_columns=True, even_rows=False, align=False,
)
col = flow.column()
col.prop(brush, "paint_color")

@ -952,7 +952,7 @@ class IMAGE_PT_render_slots(Panel):
col = row.column()
col.template_list(
"IMAGE_UL_render_slots", "render_slots", ima,
"render_slots", ima.render_slots, "active_index", rows=3
"render_slots", ima.render_slots, "active_index", rows=3,
)
col = row.column(align=True)