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
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/blender/draw/intern/draw_manager_data.c3
-rw-r--r--source/blender/editors/sculpt_paint/sculpt.c3
-rw-r--r--source/blender/gpu/intern/gpu_batch.c3
3 files changed, 6 insertions, 3 deletions
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);