VSE: Expose Zoom to Fit in all display modes

Zoom to Fit is working in all display modes, but was only exposed in
Image mode. This patch exposes it in all Image modes.

Reviewed By: ISS

Differential Revision: https://developer.blender.org/D12632
This commit is contained in:
Peter Fog 2021-09-27 04:40:05 +02:00 committed by Richard Antalik
parent f9e0981976
commit ad3e5d2bf5
1 changed files with 3 additions and 3 deletions

View File

@ -377,9 +377,9 @@ class SEQUENCER_MT_view(Menu):
layout.operator("view2d.zoom_border", text="Zoom")
layout.menu("SEQUENCER_MT_preview_zoom")
if st.display_mode == 'IMAGE':
layout.prop(st, "use_zoom_to_fit")
elif st.display_mode == 'WAVEFORM':
layout.prop(st, "use_zoom_to_fit")
if st.display_mode == 'WAVEFORM':
layout.separator()
layout.prop(st, "show_separate_color", text="Show Separate Color Channels")