Timeline: Move Keying settings from sidebar to header as popover

Having them on the sidebar means we have to expand the editor every time.
This commit is contained in:
Pablo Vazquez 2018-05-25 17:02:40 +02:00
parent 8a73ea7af2
commit 1bf2a7709f
1 changed files with 5 additions and 1 deletions

View File

@ -112,7 +112,10 @@ class TIME_MT_editor_menus(Menu):
region_type='HEADER',
panel_type="TIME_PT_playback",
text="Playback")
layout.popover(space_type='DOPESHEET_EDITOR',
region_type='HEADER',
panel_type="TIME_PT_keyframing_settings",
text="Keying")
class TIME_MT_marker(Menu):
bl_label = "Marker"
@ -265,6 +268,7 @@ class TIME_PT_playback(TimelinePanelButtons, Panel):
class TIME_PT_keyframing_settings(TimelinePanelButtons, Panel):
bl_label = "Keyframing Settings"
bl_options = {'HIDE_HEADER'}
bl_region_type = 'HEADER'
@classmethod
def poll(cls, context):