Cleanup: line length, single quote enums, invalid URL
This commit is contained in:
@@ -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)
|
||||
|
||||
|
@@ -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
|
||||
|
||||
|
@@ -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
|
||||
|
||||
|
@@ -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
|
||||
|
||||
|
@@ -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')
|
||||
|
||||
|
Reference in New Issue
Block a user