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 | |
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')
-rw-r--r-- | source/blender/editors/space_script/script_edit.c | 20 | ||||
-rw-r--r-- | source/blender/editors/space_script/script_intern.h | 1 | ||||
-rw-r--r-- | source/blender/editors/space_script/script_ops.c | 1 |
3 files changed, 0 insertions, 22 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; -} diff --git a/source/blender/editors/space_script/script_intern.h b/source/blender/editors/space_script/script_intern.h index 0e0936cf082..649992fec4f 100644 --- a/source/blender/editors/space_script/script_intern.h +++ b/source/blender/editors/space_script/script_intern.h @@ -40,6 +40,5 @@ void script_keymap(struct wmKeyConfig *keyconf); /* script_edit.c */ void SCRIPT_OT_reload(struct wmOperatorType *ot); void SCRIPT_OT_python_file_run(struct wmOperatorType *ot); -void SCRIPT_OT_autoexec_warn_clear(struct wmOperatorType *ot); #endif /* __SCRIPT_INTERN_H__ */ diff --git a/source/blender/editors/space_script/script_ops.c b/source/blender/editors/space_script/script_ops.c index 41c07596a3b..90eb38db7f7 100644 --- a/source/blender/editors/space_script/script_ops.c +++ b/source/blender/editors/space_script/script_ops.c @@ -44,7 +44,6 @@ void script_operatortypes(void) { WM_operatortype_append(SCRIPT_OT_python_file_run); WM_operatortype_append(SCRIPT_OT_reload); - WM_operatortype_append(SCRIPT_OT_autoexec_warn_clear); } void script_keymap(wmKeyConfig *UNUSED(keyconf)) |