Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brecht@blender.org>2020-04-17 18:56:54 +0300
committerBrecht Van Lommel <brecht@blender.org>2020-04-17 18:59:14 +0300
commite4915730605568816033a141af28bd27124e3abf (patch)
tree8552bff32616cbe4baec58c316db4ece37b1304d /release/scripts/startup/bl_ui/space_userpref.py
parentf915549ee7d6747f633ae7fa242ffd69e7a03312 (diff)
Fix poor video sequencer preferences UI layout
Sequencer related properties were not grouped together, and it wasn't clear that the disk cache settings were about the sequencer. Now moved sequencer settings into own panel.
Diffstat (limited to 'release/scripts/startup/bl_ui/space_userpref.py')
-rw-r--r--release/scripts/startup/bl_ui/space_userpref.py42
1 files changed, 27 insertions, 15 deletions
diff --git a/release/scripts/startup/bl_ui/space_userpref.py b/release/scripts/startup/bl_ui/space_userpref.py
index 179b3612a62..3d579053a97 100644
--- a/release/scripts/startup/bl_ui/space_userpref.py
+++ b/release/scripts/startup/bl_ui/space_userpref.py
@@ -559,6 +559,7 @@ class SystemPanel:
class USERPREF_PT_system_sound(SystemPanel, CenterAlignMixIn, Panel):
bl_label = "Sound"
+ bl_options = {'DEFAULT_CLOSED'}
def draw_centered(self, context, layout):
prefs = context.preferences
@@ -604,33 +605,43 @@ class USERPREF_PT_system_memory(SystemPanel, CenterAlignMixIn, Panel):
system = prefs.system
edit = prefs.edit
- flow = layout.grid_flow(row_major=False, columns=0, even_columns=True, even_rows=False, align=False)
-
- flow.prop(edit, "undo_steps", text="Undo Steps")
- flow.prop(edit, "undo_memory_limit", text="Undo Memory Limit")
- flow.prop(edit, "use_global_undo")
+ layout.prop(edit, "undo_steps", text="Undo Steps")
+ layout.prop(edit, "undo_memory_limit", text="Undo Memory Limit")
+ layout.prop(edit, "use_global_undo")
layout.separator()
- flow.prop(system, "texture_time_out", text="Texture Time Out")
- flow.prop(system, "texture_collection_rate", text="Garbage Collection Rate")
+ layout.prop(system, "texture_time_out", text="Texture Time Out")
+ layout.prop(system, "texture_collection_rate", text="Garbage Collection Rate")
layout.separator()
- flow.prop(system, "vbo_time_out", text="Vbo Time Out")
- flow.prop(system, "vbo_collection_rate", text="Garbage Collection Rate")
+ layout.prop(system, "vbo_time_out", text="Vbo Time Out")
+ layout.prop(system, "vbo_collection_rate", text="Garbage Collection Rate")
layout.separator()
- flow.prop(system, "scrollback", text="Console Scrollback Lines")
+ layout.prop(system, "scrollback", text="Console Scrollback Lines")
+
+
+class USERPREF_PT_system_video_sequencer(SystemPanel, CenterAlignMixIn, Panel):
+ bl_label = "Video Sequencer"
+
+ def draw_centered(self, context, layout):
+ prefs = context.preferences
+ system = prefs.system
+ edit = prefs.edit
+
+ layout.prop(system, "memory_cache_limit")
layout.separator()
- flow.prop(system, "memory_cache_limit", text="Sequencer Cache Limit")
- flow.prop(system, "use_sequencer_disk_cache")
- flow.prop(system, "sequencer_disk_cache_dir")
- flow.prop(system, "sequencer_disk_cache_size_limit")
- flow.prop(system, "sequencer_disk_cache_compression")
+ layout.prop(system, "use_sequencer_disk_cache")
+ col = layout.column()
+ col.active = system.use_sequencer_disk_cache
+ col.prop(system, "sequencer_disk_cache_dir", text="Directory")
+ col.prop(system, "sequencer_disk_cache_size_limit", text="Cache Limit")
+ col.prop(system, "sequencer_disk_cache_compression", text="Compression")
# -----------------------------------------------------------------------------
@@ -2217,6 +2228,7 @@ classes = (
USERPREF_PT_system_cycles_devices,
USERPREF_PT_system_memory,
+ USERPREF_PT_system_video_sequencer,
USERPREF_PT_system_sound,
USERPREF_MT_interface_theme_presets,