UI: disable top-bar tool name drawing

Makes text jump about.
This commit is contained in:
Campbell Barton 2018-04-29 17:49:39 +02:00
parent b5985831e2
commit 4218a94b1e
1 changed files with 2 additions and 4 deletions

View File

@ -456,11 +456,9 @@ class ToolSelectPanelHelper:
def draw_active_tool_header(context, layout):
item, icon_value = ToolSelectPanelHelper._active_tool(context, with_icon=True)
if item is None:
layout.label("No Tool Found")
return
# Indent until we have better icon scaling.
layout.label(" " + item.text, icon_value=icon_value)
# Note: we could show 'item.text' here but it makes the layout jitter when switcuing tools.
layout.label(" ", icon_value=icon_value)
draw_settings = item.draw_settings
if draw_settings is not None:
draw_settings(context, layout)