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-04-23 13:36:20 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-04-23 13:36:20 +0300
commit100e10e4b0a6f27f7bb4453495d2d759b2433b3f (patch)
tree5a15e62895b552ce8e612c959534bd833e8db49f /release
parentdc16f6fedc0c551032e1b732850cfb6ab2b5c785 (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.py3
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(