Cleanup: use braces

This commit is contained in:
Campbell Barton
2019-09-23 09:36:12 +10:00
parent 4031bc1478
commit 381a274909
3 changed files with 6 additions and 3 deletions

View File

@@ -65,8 +65,9 @@ static void draw_call_sort(DRWCommand *array, DRWCommand *array_tmp, int array_l
for (int i = 0; i < array_len; i++) {
/* Early out if nothing to sort. */
if (++idx[KEY(array[i])] == array_len)
if (++idx[KEY(array[i])] == array_len) {
return;
}
}
/* Cumulate batch indices */
for (int i = 1; i < ARRAY_SIZE(idx); i++) {

View File

@@ -8128,8 +8128,9 @@ static void mesh_filter_task_cb(void *__restrict userdata,
add_v3_v3v3(final_pos, orig_co, disp);
copy_v3_v3(vd.co, final_pos);
if (vd.mvert)
if (vd.mvert) {
vd.mvert->flag |= ME_VERT_PBVH_UPDATE;
}
}
BKE_pbvh_vertex_iter_end;

View File

@@ -836,8 +836,9 @@ void GPU_draw_list_submit(GPUDrawList *list)
{
GPUBatch *batch = list->batch;
if (list->cmd_len == 0)
if (list->cmd_len == 0) {
return;
}
BLI_assert(list->commands);
BLI_assert(batch->program_in_use);