From c2bcde5c285ec731c3f869324455d85c39ff3c75 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Thu, 1 Nov 2018 18:32:37 +0100 Subject: 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. --- source/blender/python/intern/bpy_app.c | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'source/blender/python/intern/bpy_app.c') diff --git a/source/blender/python/intern/bpy_app.c b/source/blender/python/intern/bpy_app.c index d8c74bdf565..97ac975c958 100644 --- a/source/blender/python/intern/bpy_app.c +++ b/source/blender/python/intern/bpy_app.c @@ -316,12 +316,6 @@ static int bpy_app_debug_value_set(PyObject *UNUSED(self), PyObject *value, void return 0; } -static PyObject *bpy_app_global_flag_get(PyObject *UNUSED(self), void *closure) -{ - const int flag = POINTER_AS_INT(closure); - return PyBool_FromLong(G.f & flag); -} - PyDoc_STRVAR(bpy_app_tempdir_doc, "String, the temp directory used by blender (read-only)" ); @@ -353,12 +347,6 @@ static PyObject *bpy_app_preview_render_size_get(PyObject *UNUSED(self), void *c return PyLong_FromLong((long)UI_preview_render_size(POINTER_AS_INT(closure))); } -static PyObject *bpy_app_autoexec_fail_message_get(PyObject *UNUSED(self), void *UNUSED(closure)) -{ - return PyC_UnicodeFromByte(G.autoexec_fail); -} - - PyDoc_STRVAR(bpy_app_use_static_override_doc, "Boolean, whether static override is exposed in UI or not." ); @@ -410,12 +398,6 @@ static PyGetSetDef bpy_app_getsets[] = { {(char *)"render_icon_size", bpy_app_preview_render_size_get, NULL, (char *)bpy_app_preview_render_size_doc, (void *)ICON_SIZE_ICON}, {(char *)"render_preview_size", bpy_app_preview_render_size_get, NULL, (char *)bpy_app_preview_render_size_doc, (void *)ICON_SIZE_PREVIEW}, - - /* security */ - {(char *)"autoexec_fail", bpy_app_global_flag_get, NULL, NULL, (void *)G_SCRIPT_AUTOEXEC_FAIL}, - {(char *)"autoexec_fail_quiet", bpy_app_global_flag_get, NULL, NULL, (void *)G_SCRIPT_AUTOEXEC_FAIL_QUIET}, - {(char *)"autoexec_fail_message", bpy_app_autoexec_fail_message_get, NULL, NULL, NULL}, - {NULL, NULL, NULL, NULL, NULL} }; static void py_struct_seq_getset_init(void) -- cgit v1.2.3