diff options
author | Jacques Lucke <jacques@blender.org> | 2020-09-09 12:10:38 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-09-09 12:10:38 +0300 |
commit | 377a1e3d7b7f108c5feff24dc2adb5ef7c402989 (patch) | |
tree | bd8090d08ba3abfe7952e001e99625fe77713301 /source/blender/python | |
parent | 916497627ce07318bb9bc82aabcb42af9561c560 (diff) |
Cleanup: use bool instead of int
Diffstat (limited to 'source/blender/python')
-rw-r--r-- | source/blender/python/intern/bpy_rna_gizmo.c | 4 | ||||
-rw-r--r-- | source/blender/python/intern/bpy_rna_gizmo.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/python/intern/bpy_rna_gizmo.c b/source/blender/python/intern/bpy_rna_gizmo.c index 575824e8a86..542d014f8b2 100644 --- a/source/blender/python/intern/bpy_rna_gizmo.c +++ b/source/blender/python/intern/bpy_rna_gizmo.c @@ -507,7 +507,7 @@ fail: /** \} */ -int BPY_rna_gizmo_module(PyObject *mod_par) +bool BPY_rna_gizmo_module(PyObject *mod_par) { static PyMethodDef method_def_array[] = { /* Gizmo Target Property Define API */ @@ -541,5 +541,5 @@ int BPY_rna_gizmo_module(PyObject *mod_par) PyModule_AddObject(mod_par, name_prefix, func_inst); } - return 0; + return false; } diff --git a/source/blender/python/intern/bpy_rna_gizmo.h b/source/blender/python/intern/bpy_rna_gizmo.h index 307b694338c..e4ac43bfe6c 100644 --- a/source/blender/python/intern/bpy_rna_gizmo.h +++ b/source/blender/python/intern/bpy_rna_gizmo.h @@ -24,7 +24,7 @@ extern "C" { #endif -int BPY_rna_gizmo_module(PyObject *); +bool BPY_rna_gizmo_module(PyObject *); #ifdef __cplusplus } |