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:
authorCampbell Barton <ideasman42@gmail.com>2018-05-02 11:59:20 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-05-02 12:03:03 +0300
commit85dcdb87d2ee91844e1dc343b8bd48ace2717d77 (patch)
treec09448f6789a3e67101a9736aac8d4a2ceabca83 /release/scripts/startup/bl_ui/space_topbar.py
parent2bc9396b551ff15cb3fee3eca91aa6357d71ae33 (diff)
UI: fix operator redo showing empty popovers
Many operators have no options, showing a popover button with no content isn't good.
Diffstat (limited to 'release/scripts/startup/bl_ui/space_topbar.py')
-rw-r--r--release/scripts/startup/bl_ui/space_topbar.py13
1 files changed, 1 insertions, 12 deletions
diff --git a/release/scripts/startup/bl_ui/space_topbar.py b/release/scripts/startup/bl_ui/space_topbar.py
index dad13ce9f1e..3f32038e56d 100644
--- a/release/scripts/startup/bl_ui/space_topbar.py
+++ b/release/scripts/startup/bl_ui/space_topbar.py
@@ -179,7 +179,7 @@ class TOPBAR_HT_lower_bar(Header):
row.enabled = op is not None
row.popover(
space_type='TOPBAR',
- region_type='WINDOW',
+ region_type='HEADER',
panel_type="TOPBAR_PT_redo",
text=op.name + " Settings" if op else "Command Settings",
)
@@ -232,16 +232,6 @@ class _draw_left_context_mode:
UnifiedPaintPanel.prop_unified_strength(layout, context, brush, "strength", slider=True, text="Strength")
-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 = ""
@@ -508,7 +498,6 @@ 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,