Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-06-21 01:36:03 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-06-21 01:36:03 +0300
commitd2e474d043abf8eca750abc1475fd99b08a77a45 (patch)
tree35ecf8d7f7b9eee91d249dd6a79985b0a1d55723 /release/scripts/startup/bl_operators
parent91b8e24db3bce0d45203dcaf720bbbf472a59c1d (diff)
Cleanup: use trailing commas for multi-line arguments
Diffstat (limited to 'release/scripts/startup/bl_operators')
-rw-r--r--release/scripts/startup/bl_operators/object.py4
-rw-r--r--release/scripts/startup/bl_operators/presets.py2
-rw-r--r--release/scripts/startup/bl_operators/uvcalc_lightmap.py19
-rw-r--r--release/scripts/startup/bl_operators/uvcalc_smart_project.py6
4 files changed, 16 insertions, 15 deletions
diff --git a/release/scripts/startup/bl_operators/object.py b/release/scripts/startup/bl_operators/object.py
index 28324891c53..93a022e6c3e 100644
--- a/release/scripts/startup/bl_operators/object.py
+++ b/release/scripts/startup/bl_operators/object.py
@@ -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
diff --git a/release/scripts/startup/bl_operators/presets.py b/release/scripts/startup/bl_operators/presets.py
index 451d7b5a427..097b93ea9ca 100644
--- a/release/scripts/startup/bl_operators/presets.py
+++ b/release/scripts/startup/bl_operators/presets.py
@@ -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
diff --git a/release/scripts/startup/bl_operators/uvcalc_lightmap.py b/release/scripts/startup/bl_operators/uvcalc_lightmap.py
index b5cb5024ad0..2b20754a995 100644
--- a/release/scripts/startup/bl_operators/uvcalc_lightmap.py
+++ b/release/scripts/startup/bl_operators/uvcalc_lightmap.py
@@ -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.
diff --git a/release/scripts/startup/bl_operators/uvcalc_smart_project.py b/release/scripts/startup/bl_operators/uvcalc_smart_project.py
index 321c4d76ef3..fdf74c420a9 100644
--- a/release/scripts/startup/bl_operators/uvcalc_smart_project.py
+++ b/release/scripts/startup/bl_operators/uvcalc_smart_project.py
@@ -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):