diff options
author | Campbell Barton <campbell@blender.org> | 2022-04-26 07:25:58 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-04-26 07:25:58 +0300 |
commit | 6d12bc9e918d47f39135750f9d99f901f88efc44 (patch) | |
tree | 752020c03cecc7a447eb9878601ee79527e957aa /source/blender/python | |
parent | a9d1b3d7e3e9fa52c811d9807c8a26aa1c64b327 (diff) |
Cleanup: use boolean arguments and return values
Diffstat (limited to 'source/blender/python')
-rw-r--r-- | source/blender/python/BPY_extern.h | 2 | ||||
-rw-r--r-- | source/blender/python/intern/bpy_app_handlers.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/python/BPY_extern.h b/source/blender/python/BPY_extern.h index c052fc0e8da..0ab26fde34f 100644 --- a/source/blender/python/BPY_extern.h +++ b/source/blender/python/BPY_extern.h @@ -67,7 +67,7 @@ void BPY_text_free_code(struct Text *text); void BPY_modules_update(void); void BPY_modules_load_user(struct bContext *C); -void BPY_app_handlers_reset(short do_all); +void BPY_app_handlers_reset(bool do_all); /** * Update function, it gets rid of python-drivers global dictionary: `bpy.app.driver_namespace`, diff --git a/source/blender/python/intern/bpy_app_handlers.c b/source/blender/python/intern/bpy_app_handlers.c index 319ca7baea1..bf427d9639a 100644 --- a/source/blender/python/intern/bpy_app_handlers.c +++ b/source/blender/python/intern/bpy_app_handlers.c @@ -244,7 +244,7 @@ PyObject *BPY_app_handlers_struct(void) return ret; } -void BPY_app_handlers_reset(const short do_all) +void BPY_app_handlers_reset(const bool do_all) { PyGILState_STATE gilstate; int pos = 0; |