diff options
author | Jacques Lucke <mail@jlucke.com> | 2018-11-26 22:25:15 +0300 |
---|---|---|
committer | Jacques Lucke <mail@jlucke.com> | 2018-11-26 22:25:15 +0300 |
commit | c1adf938e6c8ecaec805f4cf95c73480de1bf980 (patch) | |
tree | 2e097af6b8bbf8383463b0d4f54ad011321177ff /source/blender/python/intern/bpy_app.c | |
parent | d5778b5bc1663b14449c90d4bc0e84d56f64c156 (diff) |
Timer: Generic BLI_timer with Python wrapper
There is a new `bpy.app.timers` api.
For more details, look in the Python API documentation.
Reviewers: campbellbarton
Differential Revision: https://developer.blender.org/D3994
Diffstat (limited to 'source/blender/python/intern/bpy_app.c')
-rw-r--r-- | source/blender/python/intern/bpy_app.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/python/intern/bpy_app.c b/source/blender/python/intern/bpy_app.c index d8c74bdf565..bba9eee0316 100644 --- a/source/blender/python/intern/bpy_app.c +++ b/source/blender/python/intern/bpy_app.c @@ -49,6 +49,7 @@ /* modules */ #include "bpy_app_icons.h" +#include "bpy_app_timers.h" #include "BLI_utildefines.h" @@ -124,6 +125,7 @@ static PyStructSequence_Field app_info_fields[] = { /* Modules (not struct sequence). */ {(char *)"icons", (char *)"Manage custom icons"}, + {(char *)"timers", (char *)"Manage timers"}, {NULL}, }; @@ -137,6 +139,7 @@ PyDoc_STRVAR(bpy_app_doc, "\n" " bpy.app.handlers.rst\n" " bpy.app.icons.rst\n" +" bpy.app.timers.rst\n" " bpy.app.translations.rst\n" ); @@ -220,6 +223,7 @@ static PyObject *make_app_info(void) /* modules */ SetObjItem(BPY_app_icons_module()); + SetObjItem(BPY_app_timers_module()); #undef SetIntItem #undef SetStrItem |