Cleanup: rename SequenceEditor instance to 'ed'

Name 'sequencer' & 'sequence' are too similar.
This commit is contained in:
Campbell Barton
2018-02-19 22:32:41 +11:00
parent 860939ccc2
commit 0e4829eb05

View File

@@ -106,7 +106,7 @@ class SEQUENCER_HT_header(Header):
layout.prop(st, "preview_channels", expand=True, text="") layout.prop(st, "preview_channels", expand=True, text="")
layout.prop(st, "display_channel", text="Channel") layout.prop(st, "display_channel", text="Channel")
ed = context.scene.sequence_editor ed = scene.sequence_editor
if ed: if ed:
row = layout.row(align=True) row = layout.row(align=True)
row.prop(ed, "show_overlay", text="", icon='GHOST_ENABLED') row.prop(ed, "show_overlay", text="", icon='GHOST_ENABLED')
@@ -1076,7 +1076,7 @@ class SEQUENCER_PT_proxy(SequencerButtonsPanel, Panel):
def draw(self, context): def draw(self, context):
layout = self.layout layout = self.layout
sequencer = context.scene.sequence_editor ed = context.scene.sequence_editor
strip = act_strip(context) strip = act_strip(context)
@@ -1084,9 +1084,9 @@ class SEQUENCER_PT_proxy(SequencerButtonsPanel, Panel):
proxy = strip.proxy proxy = strip.proxy
flow = layout.column_flow() flow = layout.column_flow()
flow.prop(sequencer, "proxy_storage", text="Storage") flow.prop(ed, "proxy_storage", text="Storage")
if sequencer.proxy_storage == 'PROJECT': if ed.proxy_storage == 'PROJECT':
flow.prop(sequencer, "proxy_dir", text="Directory") flow.prop(ed, "proxy_dir", text="Directory")
else: else:
flow.prop(proxy, "use_proxy_custom_directory") flow.prop(proxy, "use_proxy_custom_directory")
flow.prop(proxy, "use_proxy_custom_file") flow.prop(proxy, "use_proxy_custom_file")
@@ -1192,7 +1192,7 @@ class SEQUENCER_PT_modifiers(SequencerButtonsPanel, Panel):
layout = self.layout layout = self.layout
strip = act_strip(context) strip = act_strip(context)
sequencer = context.scene.sequence_editor ed = context.scene.sequence_editor
layout.prop(strip, "use_linear_modifiers") layout.prop(strip, "use_linear_modifiers")
@@ -1223,9 +1223,9 @@ class SEQUENCER_PT_modifiers(SequencerButtonsPanel, Panel):
row.prop(mod, "input_mask_type", expand=True) row.prop(mod, "input_mask_type", expand=True)
if mod.input_mask_type == 'STRIP': if mod.input_mask_type == 'STRIP':
sequences_object = sequencer sequences_object = ed
if sequencer.meta_stack: if ed.meta_stack:
sequences_object = sequencer.meta_stack[-1] sequences_object = ed.meta_stack[-1]
box.prop_search(mod, "input_mask_strip", sequences_object, "sequences", text="Mask") box.prop_search(mod, "input_mask_strip", sequences_object, "sequences", text="Mask")
else: else:
box.prop(mod, "input_mask_id") box.prop(mod, "input_mask_id")