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>2020-05-29 05:45:20 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-05-29 05:45:46 +0300
commitdbdb8a335545d1f7287b9474e54f40b685a48fad (patch)
tree67248bcbd90af97bfdae8031641df54b3a14c700
parent5ec18ae4abc2ae70f450416d10bd454033b4bd65 (diff)
Cleanup: line length, single quote enums, invalid URL
-rw-r--r--release/scripts/modules/rna_info.py8
-rw-r--r--release/scripts/startup/bl_operators/uvcalc_follow_active.py3
-rw-r--r--release/scripts/startup/bl_ui/properties_paint_common.py2
-rw-r--r--release/scripts/startup/bl_ui/space_sequencer.py6
-rw-r--r--release/scripts/startup/bl_ui/space_view3d.py7
5 files changed, 16 insertions, 10 deletions
diff --git a/release/scripts/modules/rna_info.py b/release/scripts/modules/rna_info.py
index 71d7ee5a7bc..964eff0e572 100644
--- a/release/scripts/modules/rna_info.py
+++ b/release/scripts/modules/rna_info.py
@@ -303,7 +303,9 @@ class InfoPropertyRNA:
for dim in self.array_dimensions[::-1]:
if dim != 0:
self.default = tuple(zip(*((iter(self.default),) * dim)))
- self.default_str = tuple("(%s)" % ", ".join(s for s in b) for b in zip(*((iter(self.default_str),) * dim)))
+ self.default_str = tuple(
+ "(%s)" % ", ".join(s for s in b) for b in zip(*((iter(self.default_str),) * dim))
+ )
self.default_str = self.default_str[0]
elif self.type == "enum" and self.is_enum_flag:
self.default = getattr(rna_prop, "default_flag", set())
@@ -349,7 +351,9 @@ class InfoPropertyRNA:
type_str += self.type
if self.array_length:
if self.array_dimensions[1] != 0:
- type_str += " multi-dimensional array of %s items" % (" * ".join(str(d) for d in self.array_dimensions if d != 0))
+ type_str += " multi-dimensional array of %s items" % (
+ " * ".join(str(d) for d in self.array_dimensions if d != 0)
+ )
else:
type_str += " array of %d items" % (self.array_length)
diff --git a/release/scripts/startup/bl_operators/uvcalc_follow_active.py b/release/scripts/startup/bl_operators/uvcalc_follow_active.py
index 83d451fbc89..6f441238606 100644
--- a/release/scripts/startup/bl_operators/uvcalc_follow_active.py
+++ b/release/scripts/startup/bl_operators/uvcalc_follow_active.py
@@ -18,9 +18,6 @@
# <pep8 compliant>
-# for full docs see...
-# https://docs.blender.org/manual/en/latest/editors/uv_image/uv/editing/unwrapping/mapping_types.html#follow-active-quads
-
import bpy
from bpy.types import Operator
diff --git a/release/scripts/startup/bl_ui/properties_paint_common.py b/release/scripts/startup/bl_ui/properties_paint_common.py
index dbe3ced04b3..5fadb31c83f 100644
--- a/release/scripts/startup/bl_ui/properties_paint_common.py
+++ b/release/scripts/startup/bl_ui/properties_paint_common.py
@@ -125,7 +125,7 @@ class UnifiedPaintPanel:
if unified_name and not header:
# NOTE: We don't draw UnifiedPaintSettings in the header to reduce clutter. D5928#136281
- row.prop(ups, unified_name, text="", icon="BRUSHES_ALL")
+ row.prop(ups, unified_name, text="", icon='BRUSHES_ALL')
return row
diff --git a/release/scripts/startup/bl_ui/space_sequencer.py b/release/scripts/startup/bl_ui/space_sequencer.py
index dc479539012..41c220f7ee4 100644
--- a/release/scripts/startup/bl_ui/space_sequencer.py
+++ b/release/scripts/startup/bl_ui/space_sequencer.py
@@ -335,7 +335,7 @@ class SEQUENCER_MT_view(Menu):
props.sequencer = True
layout.separator()
- layout.operator("sequencer.export_subtitles", text="Export Subtitles", icon="EXPORT")
+ layout.operator("sequencer.export_subtitles", text="Export Subtitles", icon='EXPORT')
layout.separator()
@@ -1034,10 +1034,10 @@ class SEQUENCER_PT_effect(SequencerButtonsPanel, Panel):
row.prop(strip, "input_1")
if strip.input_count > 1:
- row.operator("sequencer.swap_inputs", text="", icon="SORT_ASC")
+ row.operator("sequencer.swap_inputs", text="", icon='SORT_ASC')
row = col.row()
row.prop(strip, "input_2")
- row.operator("sequencer.swap_inputs", text="", icon="SORT_DESC")
+ row.operator("sequencer.swap_inputs", text="", icon='SORT_DESC')
strip_type = strip.type
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index 488b4a99fc1..ed9a27aeae6 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -736,7 +736,12 @@ class VIEW3D_HT_header(Header):
row.prop(tool_settings, "use_gpencil_vertex_select_mask_stroke", text="")
row.prop(tool_settings, "use_gpencil_vertex_select_mask_segment", text="")
- if gpd.use_stroke_edit_mode or gpd.is_stroke_sculpt_mode or gpd.is_stroke_weight_mode or gpd.is_stroke_vertex_mode:
+ if (
+ gpd.use_stroke_edit_mode or
+ gpd.is_stroke_sculpt_mode or
+ gpd.is_stroke_weight_mode or
+ gpd.is_stroke_vertex_mode
+ ):
row = layout.row(align=True)
row.prop(gpd, "use_multiedit", text="", icon='GP_MULTIFRAME_EDITING')