Cleanup: use trailing commas for multi-line arguments
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user