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 /source/blender/editors/space_script/script_edit.c | |
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 'source/blender/editors/space_script/script_edit.c')
-rw-r--r-- | source/blender/editors/space_script/script_edit.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/source/blender/editors/space_script/script_edit.c b/source/blender/editors/space_script/script_edit.c index 6bfb51d07c6..beff7c8211d 100644 --- a/source/blender/editors/space_script/script_edit.c +++ b/source/blender/editors/space_script/script_edit.c @@ -145,23 +145,3 @@ void SCRIPT_OT_reload(wmOperatorType *ot) /* api callbacks */ ot->exec = script_reload_exec; } - -static int script_autoexec_warn_clear_exec(bContext *UNUSED(C), wmOperator *UNUSED(op)) -{ - G.f |= G_SCRIPT_AUTOEXEC_FAIL_QUIET; - return OPERATOR_FINISHED; -} - -void SCRIPT_OT_autoexec_warn_clear(wmOperatorType *ot) -{ - /* identifiers */ - ot->name = "Continue Untrusted"; - ot->description = "Ignore autoexec warning"; - ot->idname = "SCRIPT_OT_autoexec_warn_clear"; - - /* flags */ - ot->flag = OPTYPE_INTERNAL; - - /* api callbacks */ - ot->exec = script_autoexec_warn_clear_exec; -} |