Cleanup: use trailing commas for multi-line arguments

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

View File

@@ -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

View File

@@ -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

View File

@@ -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.

View File

@@ -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):