[Bf-blender-cvs] [9f4b7bed291] blender2.8: UI: Center ID Blocks in Video Sequencer

William Reynish noreply at git.blender.org
Thu Jun 28 00:49:27 CEST 2018


Commit: 9f4b7bed291fd2d87717d4191089b471061ef3e4
Author: William Reynish
Date:   Thu Jun 28 00:32:02 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB9f4b7bed291fd2d87717d4191089b471061ef3e4

UI: Center ID Blocks in Video Sequencer

Also remove Use Preview Range and Lock Frame buttons from the header
they belong to the Timeline editor now.

See T55635

===================================================================

M	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 ce1d1da038c..08ae7a99739 100644
--- a/release/scripts/startup/bl_ui/space_sequencer.py
+++ b/release/scripts/startup/bl_ui/space_sequencer.py
@@ -83,21 +83,18 @@ class SEQUENCER_HT_header(Header):
 
         SEQUENCER_MT_editor_menus.draw_collapsible(context, layout)
 
-        row = layout.row(align=True)
-        row.prop(scene, "use_preview_range", text="", toggle=True)
-        row.prop(scene, "lock_frame_selection_to_range", text="", toggle=True)
+        layout.separator_spacer()
+
+        layout.template_running_jobs()
 
         if st.view_type in {'PREVIEW', 'SEQUENCER_PREVIEW'}:
             layout.prop(st, "display_mode", expand=True, text="")
 
         if st.view_type == 'SEQUENCER':
-            row = layout.row(align=True)
-            row.operator("sequencer.copy", text="", icon='COPYDOWN')
-            row.operator("sequencer.paste", text="", icon='PASTEDOWN')
-
             layout.separator()
-            layout.operator("sequencer.refresh_all")
             layout.prop(st, "show_backdrop")
+            layout.operator("sequencer.refresh_all")
+
         else:
             if st.view_type == 'SEQUENCER_PREVIEW':
                 layout.separator()
@@ -134,7 +131,12 @@ class SEQUENCER_HT_header(Header):
         props.animation = True
         props.sequencer = True
 
-        layout.template_running_jobs()
+        if st.view_type == 'SEQUENCER':
+
+            row = layout.row(align=True)
+            row.operator("sequencer.copy", text="", icon='COPYDOWN')
+            row.operator("sequencer.paste", text="", icon='PASTEDOWN')
+
 
 
 class SEQUENCER_MT_editor_menus(Menu):



More information about the Bf-blender-cvs mailing list