[Bf-blender-cvs] [296d125] master: PyAPI: Redraw notifier when debug value changes

Campbell Barton noreply at git.blender.org
Sat Jan 9 13:04:59 CET 2016


Commit: 296d125e2596ecd11be32617b32d29b085b26863
Author: Campbell Barton
Date:   Sat Jan 9 22:48:50 2016 +1100
Branches: master
https://developer.blender.org/rB296d125e2596ecd11be32617b32d29b085b26863

PyAPI: Redraw notifier when debug value changes

===================================================================

M	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 8ce2ae8..a0ea991 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;
 }




More information about the Bf-blender-cvs mailing list