diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-04-25 08:52:40 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-04-25 08:55:50 +0300 |
commit | b00d971efe67799042577cf0391bb34e9f870835 (patch) | |
tree | 256b9796c0090c5ff2340bbe3b02d4b32ca65b12 /release | |
parent | e944e215bf300cd1cea8698391679df1e3802a92 (diff) |
UI: Apply remove redo region
This was a disabled part of the top-bar merge (code by @Severin)
The only change made is to move to redo UI into a popover.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/space_topbar.py | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/release/scripts/startup/bl_ui/space_topbar.py b/release/scripts/startup/bl_ui/space_topbar.py index 87a4a91b257..9db584aee2e 100644 --- a/release/scripts/startup/bl_ui/space_topbar.py +++ b/release/scripts/startup/bl_ui/space_topbar.py @@ -101,8 +101,7 @@ class TOPBAR_HT_lower_bar(Header): elif region.alignment == 'RIGHT': self.draw_right(context) else: - # WITH_REDO_REGION_REMOVAL: - # layout.template_operator_redo_props() + # 'NONE' currently not used pass def draw_left(self, context): @@ -133,13 +132,23 @@ class TOPBAR_HT_lower_bar(Header): row = layout.row() row.enabled = op is not None row.popover( - space_type='VIEW_3D', - region_type='TOOL_PROPS', - panel_type="VIEW3D_PT_last_operator", + space_type='TOPBAR', + region_type='WINDOW', + panel_type="TOPBAR_PT_redo", text=op.name + " Settings" if op else "Command Settings", ) +class TOPBAR_PT_redo(Panel): + bl_label = "Redo" + bl_space_type = 'TOPBAR' + bl_region_type = 'WINDOW' + + def draw(self, context): + layout = self.layout + layout.column().template_operator_redo_props() + + class INFO_MT_editor_menus(Menu): bl_idname = "INFO_MT_editor_menus" bl_label = "" @@ -406,6 +415,7 @@ class INFO_MT_help(Menu): classes = ( TOPBAR_HT_upper_bar, TOPBAR_HT_lower_bar, + TOPBAR_PT_redo, INFO_MT_editor_menus, INFO_MT_file, INFO_MT_file_import, |