UI: Sequencer: Fix placement of display options in sequencer & preview mode
This commit does two things, first it removes the proportional editing tool settings. This is not accessible code and is has not been used since the grease pencil/annotations changes in 2.8. Second, this patch reorders the if statements so that the display options are always shown on the rightside. Reviewed By: antoniov Differential Revision: https://developer.blender.org/D12163
This commit is contained in:
parent
76e24609fd
commit
0be26f563e
|
@ -148,20 +148,6 @@ class SEQUENCER_HT_header(Header):
|
|||
|
||||
layout.separator_spacer()
|
||||
|
||||
if st.view_type in {'PREVIEW', 'SEQUENCER_PREVIEW'}:
|
||||
layout.prop(st, "display_mode", text="", icon_only=True)
|
||||
layout.prop(st, "preview_channels", text="", icon_only=True)
|
||||
|
||||
gpd = context.gpencil_data
|
||||
tool_settings = context.tool_settings
|
||||
|
||||
# Proportional editing
|
||||
if gpd and gpd.use_stroke_edit_mode:
|
||||
row = layout.row(align=True)
|
||||
row.prop(tool_settings, "use_proportional_edit", icon_only=True)
|
||||
if tool_settings.use_proportional_edit:
|
||||
row.prop(tool_settings, "proportional_edit_falloff", icon_only=True)
|
||||
|
||||
if st.view_type in {'SEQUENCER', 'SEQUENCER_PREVIEW'}:
|
||||
tool_settings = context.tool_settings
|
||||
row = layout.row(align=True)
|
||||
|
@ -170,6 +156,10 @@ class SEQUENCER_HT_header(Header):
|
|||
sub.popover(panel="SEQUENCER_PT_snapping")
|
||||
layout.separator_spacer()
|
||||
|
||||
if st.view_type in {'PREVIEW', 'SEQUENCER_PREVIEW'}:
|
||||
layout.prop(st, "display_mode", text="", icon_only=True)
|
||||
layout.prop(st, "preview_channels", text="", icon_only=True)
|
||||
|
||||
row = layout.row(align=True)
|
||||
row.prop(st, "show_strip_overlay", text="", icon='OVERLAY')
|
||||
sub = row.row(align=True)
|
||||
|
|
Loading…
Reference in New Issue