[Bf-blender-cvs] [100e10e4b0a] blender2.8: WM: use last_redo operator
Campbell Barton
noreply at git.blender.org
Mon Apr 23 12:37:00 CEST 2018
Commit: 100e10e4b0a6f27f7bb4453495d2d759b2433b3f
Author: Campbell Barton
Date: Mon Apr 23 12:36:20 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB100e10e4b0a6f27f7bb4453495d2d759b2433b3f
WM: use last_redo operator
Was showing operators that weren't meant to display in the UI.
===================================================================
M release/scripts/startup/bl_ui/space_topbar.py
===================================================================
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(
More information about the Bf-blender-cvs
mailing list