Cleanup: use braces
This commit is contained in:
@@ -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++) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user