diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-04-23 13:36:20 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-04-23 13:36:20 +0300 |
commit | 100e10e4b0a6f27f7bb4453495d2d759b2433b3f (patch) | |
tree | 5a15e62895b552ce8e612c959534bd833e8db49f /release | |
parent | dc16f6fedc0c551032e1b732850cfb6ab2b5c785 (diff) |
WM: use last_redo operator
Was showing operators that weren't meant to display in the UI.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/space_topbar.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/space_topbar.py b/release/scripts/startup/bl_ui/space_topbar.py index 868c60b6a1a..d4d48735a67 100644 --- a/release/scripts/startup/bl_ui/space_topbar.py +++ b/release/scripts/startup/bl_ui/space_topbar.py @@ -133,8 +133,7 @@ class TOPBAR_HT_lower_bar(Header): # Last Action (redo) layout.label("Last Action:") - operators = context.window_manager.operators - op = operators[-1] if operators else None + op = context.active_operator row = layout.row() row.enabled = op is not None row.popover( |