[Bf-blender-cvs] [4218a94b1ed] blender2.8: UI: disable top-bar tool name drawing

Campbell Barton noreply at git.blender.org
Sun Apr 29 18:03:26 CEST 2018


Commit: 4218a94b1ed3fc2cdb3cd70206ff7a9604886c3a
Author: Campbell Barton
Date:   Sun Apr 29 17:49:39 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB4218a94b1ed3fc2cdb3cd70206ff7a9604886c3a

UI: disable top-bar tool name drawing

Makes text jump about.

===================================================================

M	release/scripts/startup/bl_ui/space_toolsystem_common.py

===================================================================

diff --git a/release/scripts/startup/bl_ui/space_toolsystem_common.py b/release/scripts/startup/bl_ui/space_toolsystem_common.py
index 02722614a30..af248df8698 100644
--- a/release/scripts/startup/bl_ui/space_toolsystem_common.py
+++ b/release/scripts/startup/bl_ui/space_toolsystem_common.py
@@ -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)



More information about the Bf-blender-cvs mailing list