From 100e10e4b0a6f27f7bb4453495d2d759b2433b3f Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 23 Apr 2018 12:36:20 +0200 Subject: [PATCH] WM: use last_redo operator Was showing operators that weren't meant to display in the UI. --- release/scripts/startup/bl_ui/space_topbar.py | 3 +-- 1 file changed, 1 insertion(+), 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(