diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-02-26 08:50:36 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-02-26 08:55:58 +0300 |
commit | 7cb55a79d82d3e2e9d330368492210b17f6e1eac (patch) | |
tree | 6de4d3b7c09853a0fe15a0d4e26bdaa3af757a80 /source/blender/editors | |
parent | 9059ee81ef6be5c1eb6157db426165f5a9c2b74a (diff) |
Cleanup: use boolean arguments
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/physics/particle_edit.c | 6 | ||||
-rw-r--r-- | source/blender/editors/render/render_internal.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/physics/particle_edit.c b/source/blender/editors/physics/particle_edit.c index d0ebac82c90..1ee17d0e4b0 100644 --- a/source/blender/editors/physics/particle_edit.c +++ b/source/blender/editors/physics/particle_edit.c @@ -302,7 +302,7 @@ static void pe_update_hair_particle_edit_pointers(PTCacheEdit *edit) * * note: this function runs on poll, therefore it can runs many times a second * keep it fast! */ -static PTCacheEdit *pe_get_current(Depsgraph *depsgraph, Scene *scene, Object *ob, int create) +static PTCacheEdit *pe_get_current(Depsgraph *depsgraph, Scene *scene, Object *ob, bool create) { ParticleEditSettings *pset = PE_settings(scene); PTCacheEdit *edit = NULL; @@ -406,12 +406,12 @@ static PTCacheEdit *pe_get_current(Depsgraph *depsgraph, Scene *scene, Object *o PTCacheEdit *PE_get_current(Depsgraph *depsgraph, Scene *scene, Object *ob) { - return pe_get_current(depsgraph, scene, ob, 0); + return pe_get_current(depsgraph, scene, ob, false); } PTCacheEdit *PE_create_current(Depsgraph *depsgraph, Scene *scene, Object *ob) { - return pe_get_current(depsgraph, scene, ob, 1); + return pe_get_current(depsgraph, scene, ob, true); } void PE_current_changed(Depsgraph *depsgraph, Scene *scene, Object *ob) diff --git a/source/blender/editors/render/render_internal.c b/source/blender/editors/render/render_internal.c index 50ba5907703..b525d8a373e 100644 --- a/source/blender/editors/render/render_internal.c +++ b/source/blender/editors/render/render_internal.c @@ -800,7 +800,7 @@ static int render_break(void *UNUSED(rjv)) /* runs in thread, no cursor setting here works. careful with notifiers too (malloc conflicts) */ /* maybe need a way to get job send notifier? */ -static void render_drawlock(void *rjv, int lock) +static void render_drawlock(void *rjv, bool lock) { RenderJob *rj = rjv; |