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-01-30 01:03:37 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-01-30 01:06:44 +0300
commit7894d6c6f1982f58dc479f3f01dd79afb6f5c1a0 (patch)
tree0a11fe007ad1f9c591fbf95f5495e8d9d10401ad /release/scripts/startup/bl_operators
parent7d91ef04880b57d92c97c365e41aebbb03686ce3 (diff)
Cleanup: line length
Diffstat (limited to 'release/scripts/startup/bl_operators')
-rw-r--r--release/scripts/startup/bl_operators/file.py3
-rw-r--r--release/scripts/startup/bl_operators/object.py3
-rw-r--r--release/scripts/startup/bl_operators/uvcalc_smart_project.py7
-rw-r--r--release/scripts/startup/bl_operators/wm.py7
4 files changed, 11 insertions, 9 deletions
diff --git a/release/scripts/startup/bl_operators/file.py b/release/scripts/startup/bl_operators/file.py
index c00c4214ebc..5a127cf2fe3 100644
--- a/release/scripts/startup/bl_operators/file.py
+++ b/release/scripts/startup/bl_operators/file.py
@@ -251,7 +251,8 @@ class WM_OT_previews_batch_clear(Operator):
class WM_OT_blend_strings_utf8_validate(Operator):
- """Check and fix all strings in current .blend file to be valid UTF-8 Unicode (needed for some old, 2.4x area files)"""
+ """Check and fix all strings in current .blend file to be valid UTF-8 Unicode """ \
+ """(needed for some old, 2.4x area files)"""
bl_idname = "wm.blend_strings_utf8_validate"
bl_label = "Validate .blend strings"
bl_options = {'REGISTER'}
diff --git a/release/scripts/startup/bl_operators/object.py b/release/scripts/startup/bl_operators/object.py
index c945d15267a..42db2ca337d 100644
--- a/release/scripts/startup/bl_operators/object.py
+++ b/release/scripts/startup/bl_operators/object.py
@@ -953,7 +953,8 @@ class LoadReferenceImage(LoadImageAsEmpty, Operator):
class OBJECT_OT_assign_property_defaults(Operator):
- """Assign the current values of custom properties as their defaults, for use as part of the rest pose state in NLA track mixing"""
+ """Assign the current values of custom properties as their defaults, """ \
+ """for use as part of the rest pose state in NLA track mixing"""
bl_idname = "object.assign_property_defaults"
bl_label = "Assign Custom Property Values as Default"
bl_options = {'UNDO', 'REGISTER'}
diff --git a/release/scripts/startup/bl_operators/uvcalc_smart_project.py b/release/scripts/startup/bl_operators/uvcalc_smart_project.py
index 7097613b88f..6eb07d5c19f 100644
--- a/release/scripts/startup/bl_operators/uvcalc_smart_project.py
+++ b/release/scripts/startup/bl_operators/uvcalc_smart_project.py
@@ -803,7 +803,8 @@ def main(context,
if not meshFaces:
continue
- # Smallest first is slightly more efficient, but if the user cancels early then its better we work on the larger data.
+ # Smallest first is slightly more efficient,
+ # but if the user cancels early then its better we work on the larger data.
# Generate Projection Vecs
# 0d is 1.0
@@ -812,7 +813,9 @@ def main(context,
# Initialize projectVecs
if USER_VIEW_INIT:
# Generate Projection
- projectVecs = [Vector(Window.GetViewVector()) @ ob.matrix_world.inverted().to_3x3()] # We add to this along the way
+
+ # We add to this along the way
+ projectVecs = [Vector(Window.GetViewVector()) @ ob.matrix_world.inverted().to_3x3()]
else:
projectVecs = []
diff --git a/release/scripts/startup/bl_operators/wm.py b/release/scripts/startup/bl_operators/wm.py
index ee669d17237..b9438c275a4 100644
--- a/release/scripts/startup/bl_operators/wm.py
+++ b/release/scripts/startup/bl_operators/wm.py
@@ -2170,11 +2170,8 @@ class WM_OT_addon_remove(Operator):
addon_utils.disable(self.module, default_set=True)
import shutil
- if isdir:
- if os.path.islink(path):
- os.remove(path)
- else:
- shutil.rmtree(path)
+ if isdir and (not os.path.islink(path)):
+ shutil.rmtree(path)
else:
os.remove(path)