diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-06-21 14:18:57 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-06-21 14:19:59 +0300 |
commit | 4162d0ea3b6088a94590f3bca8d606928fe22da9 (patch) | |
tree | 52c7b4e532e103dfa854ba7ceea337667a78db3f /release | |
parent | 648956b5b5ebf3741bba6352e8750bd4235fc325 (diff) |
Fix error in recent sequencer UI update
Use of unset variable, however the value was already assigned
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/space_sequencer.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/release/scripts/startup/bl_ui/space_sequencer.py b/release/scripts/startup/bl_ui/space_sequencer.py index cc11ea81b70..3be11cbbdfa 100644 --- a/release/scripts/startup/bl_ui/space_sequencer.py +++ b/release/scripts/startup/bl_ui/space_sequencer.py @@ -807,6 +807,7 @@ class SequencerButtonsPanel_Output: def poll(cls, context): return cls.has_preview(context) + class SEQUENCER_PT_strip(SequencerButtonsPanel, Panel): bl_label = "" bl_options = {'HIDE_HEADER'} @@ -848,7 +849,6 @@ class SEQUENCER_PT_adjust_transform_offset(SequencerButtonsPanel, Panel): col = layout.column(align=True) col.prop(strip.transform, "offset_x", text="Position X") col.prop(strip.transform, "offset_y", text="Y") - class SEQUENCER_PT_adjust_transform_crop(SequencerButtonsPanel, Panel): @@ -1134,12 +1134,14 @@ class SEQUENCER_PT_source(SequencerButtonsPanel, Panel): box.active = strip.views_format == 'STEREO_3D' box.template_image_stereo_3d(strip.stereo_3d_format) - elem = False - if strip.type == 'IMAGE': - elem = strip.strip_elem_from_frame(frame_current) + # Alreay set above. + # elem = strip.strip_elem_from_frame(scene.frame_current) + pass elif strip.type == 'MOVIE': elem = strip.elements[0] + else: + elem = None if strip.type != 'SOUND': col = layout.column(align=True) @@ -1361,8 +1363,6 @@ class SEQUENCER_PT_time(SequencerButtonsPanel, Panel): split.label(text="Duration") split.prop(strip, "frame_final_duration", text=smpte_from_frame(strip.frame_final_duration)) - - if not isinstance(strip, bpy.types.EffectSequence): layout.alignment = 'RIGHT' |