diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-01-09 14:48:50 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-01-09 14:56:44 +0300 |
commit | 296d125e2596ecd11be32617b32d29b085b26863 (patch) | |
tree | d9bf31ca7a466f7f5b0e834c3de70eb3b23895e1 /source/blender/python | |
parent | 0ded953eea60ed362a92ef759abab39fb9c314db (diff) |
PyAPI: Redraw notifier when debug value changes
Diffstat (limited to 'source/blender/python')
-rw-r--r-- | source/blender/python/intern/bpy_app.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/python/intern/bpy_app.c b/source/blender/python/intern/bpy_app.c index 8ce2ae899d8..a0ea991fd05 100644 --- a/source/blender/python/intern/bpy_app.c +++ b/source/blender/python/intern/bpy_app.c @@ -54,6 +54,10 @@ #include "UI_interface_icons.h" +/* for notifiers */ +#include "WM_api.h" +#include "WM_types.h" + #include "../generic/py_capi_utils.h" #include "../generic/python_utildefines.h" @@ -270,6 +274,8 @@ static int bpy_app_debug_value_set(PyObject *UNUSED(self), PyObject *value, void G.debug_value = param; + WM_main_add_notifier(NC_WINDOW, NULL); + return 0; } |