diff options
author | Campbell Barton <campbell@blender.org> | 2022-05-20 04:24:34 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-05-20 04:24:34 +0300 |
commit | 930e526cae6204658e70fe7f19c61cf3291949f4 (patch) | |
tree | 682295e9048df70addef9816c5f053b48232539c /release | |
parent | 42a6c226d03624d880fe480eeaf2fda1bf8f5ab9 (diff) |
Cleanup: warnings, spelling, formatting
Avoid multiple `sound.bl_rna.properties["channels"].enum_items` in
the same line. Note we might want a way to avoid having to do this.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/space_sequencer.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/space_sequencer.py b/release/scripts/startup/bl_ui/space_sequencer.py index 3c10f393503..40da0b03f76 100644 --- a/release/scripts/startup/bl_ui/space_sequencer.py +++ b/release/scripts/startup/bl_ui/space_sequencer.py @@ -1658,8 +1658,11 @@ class SEQUENCER_PT_source(SequencerButtonsPanel, Panel): split.alignment = 'RIGHT' split.label(text="Channels") split.alignment = 'LEFT' - txt_channels = sound.bl_rna.properties["channels"].enum_items[sound.bl_rna.properties["channels"].enum_items.find(sound.channels)].name - split.label(text=txt_channels) + + # FIXME(@campbellbarton): this is ugly, we may want to support a way of showing a label from an enum. + channel_enum_items = sound.bl_rna.properties["channels"].enum_items + split.label(text=channel_enum_items[channel_enum_items.find(sound.channels)].name) + del channel_enum_items else: if strip_type == 'IMAGE': col = layout.column() |