diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-02-01 04:06:57 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-02-01 05:40:53 +0300 |
commit | 078e012cd9711e3d9b88bdf437f31e39518315df (patch) | |
tree | 344ef2c78c3a70ae434095f8d25055ba3ba486ab /source/blender/editors | |
parent | 0a4e170c28cecd70e7cfb776f0c22a435ecd10e9 (diff) |
Cleanup: rename BLI_*_empty() -> clear()
Consistent with other BLI API's
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/mesh/editmesh_intersect.c | 2 | ||||
-rw-r--r-- | source/blender/editors/uvedit/uvedit_ops.c | 2 | ||||
-rw-r--r-- | source/blender/editors/uvedit/uvedit_parametrizer.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/mesh/editmesh_intersect.c b/source/blender/editors/mesh/editmesh_intersect.c index 3498c6246d7..d681d904e74 100644 --- a/source/blender/editors/mesh/editmesh_intersect.c +++ b/source/blender/editors/mesh/editmesh_intersect.c @@ -400,7 +400,7 @@ static void bm_face_split_by_edges( bm, f, edge_net_temp_buf->data, edge_net_temp_buf->count, &face_arr, &face_arr_len); - BLI_buffer_empty(edge_net_temp_buf); + BLI_buffer_clear(edge_net_temp_buf); if (face_arr_len) { int i; diff --git a/source/blender/editors/uvedit/uvedit_ops.c b/source/blender/editors/uvedit/uvedit_ops.c index d69588e91c6..522640e4bda 100644 --- a/source/blender/editors/uvedit/uvedit_ops.c +++ b/source/blender/editors/uvedit/uvedit_ops.c @@ -1801,7 +1801,7 @@ static int uv_remove_doubles_exec(bContext *C, wmOperator *op) float uv_min[2]; float uv_max[2]; - BLI_array_empty(loop_arr); + BLI_array_clear(loop_arr); BLI_array_append(loop_arr, vert_arr[uv_a_index].uv_loop); uv_a = vert_arr[uv_a_index].uv_loop->uv; diff --git a/source/blender/editors/uvedit/uvedit_parametrizer.c b/source/blender/editors/uvedit/uvedit_parametrizer.c index 29c908ff900..2a3a2b84223 100644 --- a/source/blender/editors/uvedit/uvedit_parametrizer.c +++ b/source/blender/editors/uvedit/uvedit_parametrizer.c @@ -2185,7 +2185,7 @@ static void p_chart_simplify_compute(PChart *chart) e->u.nextcollapse = NULL; /* pop edge collapse out of heap one by one */ - while (!BLI_heap_empty(heap)) { + while (!BLI_heap_is_empty(heap)) { if (ncollapsed == NCOLLAPSE) break; |