From f448ff2afe7a77279fe96282447912a6f7773ed3 Mon Sep 17 00:00:00 2001 From: Richard Antalik Date: Fri, 8 Jan 2021 07:24:55 +0100 Subject: VSE: Hide cache settings and adjust defaults Adjust default cache settings for all files to store raw and final images. All settings are still available when developer extras option is enabled in user preferences. This is part of design task T80278 Differential Revision: https://developer.blender.org/D9745 --- release/scripts/startup/bl_ui/space_sequencer.py | 28 ++++++++++++++++++------ 1 file changed, 21 insertions(+), 7 deletions(-) (limited to 'release/scripts/startup/bl_ui/space_sequencer.py') diff --git a/release/scripts/startup/bl_ui/space_sequencer.py b/release/scripts/startup/bl_ui/space_sequencer.py index 29f0bd1d6fb..b5c1ea8aa96 100644 --- a/release/scripts/startup/bl_ui/space_sequencer.py +++ b/release/scripts/startup/bl_ui/space_sequencer.py @@ -412,7 +412,19 @@ class SEQUENCER_MT_view(Menu): layout.separator() layout.prop(st, "show_seconds") layout.prop(st, "show_markers") - layout.menu("SEQUENCER_MT_view_cache", text="Show Cache") + if context.preferences.view.show_developer_ui: + layout.menu("SEQUENCER_MT_view_cache", text="Show Cache") + + if is_preview: + layout.separator() + if st.display_mode == 'IMAGE': + layout.prop(st, "use_zoom_to_fit") + layout.prop(ed, "show_overlay", text="Show Frame Overlay") + layout.prop(st, "show_safe_areas", text="Show Safe Areas") + layout.prop(st, "show_metadata", text="Show Metadata") + layout.prop(st, "show_annotation", text="Show Annotations") + elif st.display_mode == 'WAVEFORM': + layout.prop(st, "show_separate_color", text="Show Separate Color Channels") layout.separator() @@ -1877,11 +1889,12 @@ class SEQUENCER_PT_adjust_color(SequencerButtonsPanel, Panel): class SEQUENCER_PT_cache_settings(SequencerButtonsPanel, Panel): bl_label = "Cache Settings" - bl_category = "Proxy & Cache" + bl_category = "Cache" @classmethod def poll(cls, context): - return cls.has_sequencer(context) and context.scene.sequence_editor + show_developer_ui = context.preferences.view.show_developer_ui + return cls.has_sequencer(context) and context.scene.sequence_editor and show_developer_ui def draw(self, context): layout = self.layout @@ -1900,7 +1913,7 @@ class SEQUENCER_PT_cache_settings(SequencerButtonsPanel, Panel): class SEQUENCER_PT_proxy_settings(SequencerButtonsPanel, Panel): bl_label = "Proxy Settings" - bl_category = "Proxy & Cache" + bl_category = "Proxy" @classmethod def poll(cls, context): @@ -1925,7 +1938,7 @@ class SEQUENCER_PT_proxy_settings(SequencerButtonsPanel, Panel): class SEQUENCER_PT_strip_proxy(SequencerButtonsPanel, Panel): bl_label = "Strip Proxy & Timecode" - bl_category = "Proxy & Cache" + bl_category = "Proxy" @classmethod def poll(cls, context): @@ -1987,14 +2000,15 @@ class SEQUENCER_PT_strip_proxy(SequencerButtonsPanel, Panel): class SEQUENCER_PT_strip_cache(SequencerButtonsPanel, Panel): bl_label = "Strip Cache" - bl_category = "Proxy & Cache" + bl_category = "Cache" bl_options = {'DEFAULT_CLOSED'} @classmethod def poll(cls, context): + show_developer_ui = context.preferences.view.show_developer_ui if not cls.has_sequencer(context): return False - if act_strip(context) is not None: + if act_strip(context) is not None and show_developer_ui: return True return False -- cgit v1.2.3