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
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2019-05-13 19:28:36 +0300
committerClément Foucault <foucault.clem@gmail.com>2019-05-14 11:57:03 +0300
commitbe5192bbb9981a8b82ae47e695f084e23c96f519 (patch)
tree1e3c58d7101452936b82f8a1528b982e9df99e0c /source/blender/draw/modes/paint_texture_mode.c
parent8bc8a62c57f91326ab3f8850785dce5452b5d703 (diff)
Cleanup: DRW: Remove uneeded _add suffix from DRW_shgroup_call_add
Diffstat (limited to 'source/blender/draw/modes/paint_texture_mode.c')
-rw-r--r--source/blender/draw/modes/paint_texture_mode.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/draw/modes/paint_texture_mode.c b/source/blender/draw/modes/paint_texture_mode.c
index da32744b9ea..d0594241f7a 100644
--- a/source/blender/draw/modes/paint_texture_mode.c
+++ b/source/blender/draw/modes/paint_texture_mode.c
@@ -316,24 +316,24 @@ static void PAINT_TEXTURE_cache_populate(void *vedata, Object *ob)
for (int i = 0; i < mat_nr; i++) {
const int index = use_material_slots ? i : 0;
if ((i < me->totcol) && stl->g_data->shgroup_image_array[index]) {
- DRW_shgroup_call_add(
+ DRW_shgroup_call(
stl->g_data->shgroup_image_array[index], geom_array[i], ob->obmat);
}
else {
- DRW_shgroup_call_add(stl->g_data->shgroup_fallback, geom_array[i], ob->obmat);
+ DRW_shgroup_call(stl->g_data->shgroup_fallback, geom_array[i], ob->obmat);
}
}
}
else {
if (stl->g_data->shgroup_image_array[0]) {
struct GPUBatch *geom = DRW_cache_mesh_surface_texpaint_single_get(ob);
- DRW_shgroup_call_add(stl->g_data->shgroup_image_array[0], geom, ob->obmat);
+ DRW_shgroup_call(stl->g_data->shgroup_image_array[0], geom, ob->obmat);
}
}
}
else {
struct GPUBatch *geom = DRW_cache_mesh_surface_get(ob);
- DRW_shgroup_call_add(stl->g_data->shgroup_fallback, geom, ob->obmat);
+ DRW_shgroup_call(stl->g_data->shgroup_fallback, geom, ob->obmat);
}
}
@@ -341,10 +341,10 @@ static void PAINT_TEXTURE_cache_populate(void *vedata, Object *ob)
if (use_face_sel) {
struct GPUBatch *geom;
geom = DRW_cache_mesh_surface_edges_get(ob);
- DRW_shgroup_call_add(stl->g_data->lwire_shgrp, geom, ob->obmat);
+ DRW_shgroup_call(stl->g_data->lwire_shgrp, geom, ob->obmat);
geom = DRW_cache_mesh_surface_get(ob);
- DRW_shgroup_call_add(stl->g_data->face_shgrp, geom, ob->obmat);
+ DRW_shgroup_call(stl->g_data->face_shgrp, geom, ob->obmat);
}
}
}