diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-11-01 20:32:37 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-11-01 21:44:03 +0300 |
commit | c2bcde5c285ec731c3f869324455d85c39ff3c75 (patch) | |
tree | f2268f76d2317aa94354edb5bae48ed47c9405d9 /release/scripts/startup | |
parent | 1e8a2e1a100ce7a8d2ae5fb4ecfcecd4a801c2f3 (diff) |
UI: show blocking popup when auto execution of scripts is disabled.
This is important information, and it was easily missed at the top/bottom of
the screen.
Ref T57197.
Diffstat (limited to 'release/scripts/startup')
-rw-r--r-- | release/scripts/startup/bl_ui/space_statusbar.py | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/release/scripts/startup/bl_ui/space_statusbar.py b/release/scripts/startup/bl_ui/space_statusbar.py index 2cc5bd94bd7..87085e4ceea 100644 --- a/release/scripts/startup/bl_ui/space_statusbar.py +++ b/release/scripts/startup/bl_ui/space_statusbar.py @@ -34,19 +34,6 @@ class STATUSBAR_HT_header(Header): # messages layout.template_reports_banner() - - row = layout.row(align=True) - if bpy.app.autoexec_fail is True and bpy.app.autoexec_fail_quiet is False: - row.label(text="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(text=bpy.app.autoexec_fail_message) - layout.template_running_jobs() layout.separator_spacer() |