[Bf-blender-cvs] [381a2749092] master: Cleanup: use braces
Campbell Barton
noreply at git.blender.org
Mon Sep 23 01:57:04 CEST 2019
Commit: 381a27490925675a00b54814032c0caf22cb4b4e
Author: Campbell Barton
Date: Mon Sep 23 09:36:12 2019 +1000
Branches: master
https://developer.blender.org/rB381a27490925675a00b54814032c0caf22cb4b4e
Cleanup: use braces
===================================================================
M source/blender/draw/intern/draw_manager_data.c
M source/blender/editors/sculpt_paint/sculpt.c
M source/blender/gpu/intern/gpu_batch.c
===================================================================
diff --git a/source/blender/draw/intern/draw_manager_data.c b/source/blender/draw/intern/draw_manager_data.c
index 2e41cb58016..48dad57d3ba 100644
--- a/source/blender/draw/intern/draw_manager_data.c
+++ b/source/blender/draw/intern/draw_manager_data.c
@@ -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++) {
diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c
index d99ea79a91a..52cb02f1f12 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -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;
diff --git a/source/blender/gpu/intern/gpu_batch.c b/source/blender/gpu/intern/gpu_batch.c
index 76459d7ad45..1c05e28bdb0 100644
--- a/source/blender/gpu/intern/gpu_batch.c
+++ b/source/blender/gpu/intern/gpu_batch.c
@@ -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);
More information about the Bf-blender-cvs
mailing list