[Bf-blender-cvs] [4ad0d33] master: UI: auto-run error could push buttons off the visible header
Campbell Barton
noreply at git.blender.org
Mon Dec 1 14:54:18 CET 2014
Commit: 4ad0d33d697a1ee6304686dbe9244408f27c8d60
Author: Campbell Barton
Date: Mon Dec 1 10:59:53 2014 +0100
Branches: master
https://developer.blender.org/rB4ad0d33d697a1ee6304686dbe9244408f27c8d60
UI: auto-run error could push buttons off the visible header
===================================================================
M release/scripts/startup/bl_ui/space_info.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/space_info.py b/release/scripts/startup/bl_ui/space_info.py
index 67b2bbe..1fbe516 100644
--- a/release/scripts/startup/bl_ui/space_info.py
+++ b/release/scripts/startup/bl_ui/space_info.py
@@ -57,12 +57,15 @@ class INFO_HT_header(Header):
row = layout.row(align=True)
if bpy.app.autoexec_fail is True and bpy.app.autoexec_fail_quiet is False:
- row.label("Auto-run disabled: %s" % bpy.app.autoexec_fail_message, icon='ERROR')
+ row.label("Auto-run disabled", icon='ERROR')
if bpy.data.is_saved:
props = row.operator("wm.revert_mainfile", icon='SCREEN_BACK', text="Reload Trusted")
props.use_scripts = True
row.operator("script.autoexec_warn_clear", text="Ignore")
+
+ # include last so text doesn't push buttons out of the header
+ row.label(bpy.app.autoexec_fail_message)
return
row.operator("wm.splash", text="", icon='BLENDER', emboss=False)
More information about the Bf-blender-cvs
mailing list