Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2020-09-09 12:10:38 +0300
committerJacques Lucke <jacques@blender.org>2020-09-09 12:10:38 +0300
commit377a1e3d7b7f108c5feff24dc2adb5ef7c402989 (patch)
treebd8090d08ba3abfe7952e001e99625fe77713301 /source/blender/editors/mesh
parent916497627ce07318bb9bc82aabcb42af9561c560 (diff)
Cleanup: use bool instead of int
Diffstat (limited to 'source/blender/editors/mesh')
-rw-r--r--source/blender/editors/mesh/meshtools.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/source/blender/editors/mesh/meshtools.c b/source/blender/editors/mesh/meshtools.c
index bd14919d1d7..471d4847af6 100644
--- a/source/blender/editors/mesh/meshtools.c
+++ b/source/blender/editors/mesh/meshtools.c
@@ -891,7 +891,8 @@ void ED_mesh_mirror_topo_table_end(Object *UNUSED(ob))
ED_mesh_mirrtopo_free(&mesh_topo_store);
}
-static int ed_mesh_mirror_topo_table_update(Object *ob, Mesh *me_eval)
+/* Returns true on success. */
+static bool ed_mesh_mirror_topo_table_update(Object *ob, Mesh *me_eval)
{
Mesh *me_mirror;
BMEditMesh *em_mirror;
@@ -900,7 +901,7 @@ static int ed_mesh_mirror_topo_table_update(Object *ob, Mesh *me_eval)
if (ED_mesh_mirrtopo_recalc_check(em_mirror, me_mirror, &mesh_topo_store)) {
ED_mesh_mirror_topo_table_begin(ob, me_eval);
}
- return 0;
+ return true;
}
/** \} */
@@ -921,7 +922,7 @@ static int mesh_get_x_mirror_vert_spatial(Object *ob, Mesh *me_eval, int index)
static int mesh_get_x_mirror_vert_topo(Object *ob, Mesh *mesh, int index)
{
- if (ed_mesh_mirror_topo_table_update(ob, mesh) == -1) {
+ if (!ed_mesh_mirror_topo_table_update(ob, mesh)) {
return -1;
}
@@ -963,7 +964,7 @@ static BMVert *editbmesh_get_x_mirror_vert_topo(Object *ob,
int index)
{
intptr_t poinval;
- if (ed_mesh_mirror_topo_table_update(ob, NULL) == -1) {
+ if (!ed_mesh_mirror_topo_table_update(ob, NULL)) {
return NULL;
}