diff options
Diffstat (limited to 'source/blender/python')
-rw-r--r-- | source/blender/python/intern/bpy_rna_callback.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/python/intern/bpy_rna_callback.c b/source/blender/python/intern/bpy_rna_callback.c index 7c1eebb9b1a..102677c23b8 100644 --- a/source/blender/python/intern/bpy_rna_callback.c +++ b/source/blender/python/intern/bpy_rna_callback.c @@ -266,7 +266,10 @@ PyObject *pyrna_callback_classmethod_add(PyObject *UNUSED(self), PyObject *args) } bContext *C = BPy_GetContext(); struct wmWindowManager *wm = CTX_wm_manager(C); - handle = WM_paint_cursor_activate(wm, NULL, cb_wm_cursor_draw, (void *)args); + handle = WM_paint_cursor_activate( + wm, + SPACE_TYPE_ANY, RGN_TYPE_ANY, + NULL, cb_wm_cursor_draw, (void *)args); Py_INCREF(args); } else if (RNA_struct_is_a(srna, &RNA_Space)) { |