diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-08-06 09:56:14 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-08-06 10:05:07 +0300 |
commit | bb53d2b07a1b9befcb476c4502abe82d1bbd49bd (patch) | |
tree | 9779d64f52057320aa0eb0b4a7d9bef832e29f3d /release | |
parent | 1aabb0bfcf22969d570b57bc621d2709b45429ef (diff) |
Sequencer: frame offset feature usability
- Expose the operator in the panel,
(wasn't available in the UI at all).
- Offset frame was hard coded to a color matching the background.
Use the current frame color with dashes instead.
- Overlay toggle had wrong name.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/space_sequencer.py | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/release/scripts/startup/bl_ui/space_sequencer.py b/release/scripts/startup/bl_ui/space_sequencer.py index d5ef24d7ff3..a7600552cbc 100644 --- a/release/scripts/startup/bl_ui/space_sequencer.py +++ b/release/scripts/startup/bl_ui/space_sequencer.py @@ -243,13 +243,6 @@ class SEQUENCER_MT_view(Menu): translate=False, ).ratio = a / b - layout.separator() - - layout.operator_context = 'INVOKE_DEFAULT' - - # # XXX, invokes in the header view - # layout.operator("sequencer.view_ghost_border", text="Overlay Border") - if is_sequencer_view: layout.prop(st, "show_seconds") layout.prop(st, "show_frame_indicator") @@ -1843,6 +1836,11 @@ class SEQUENCER_PT_frame_overlay(SequencerButtonsPanel_Output, Panel): def draw(self, context): layout = self.layout + + layout.operator_context = 'INVOKE_REGION_PREVIEW' + layout.operator("sequencer.view_ghost_border", text="Set Overlay Region") + layout.operator_context = 'INVOKE_DEFAULT' + layout.use_property_split = True layout.use_property_decorate = False |