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:
authormano-wii <germano.costa@ig.com.br>2019-08-02 04:24:07 +0300
committermano-wii <germano.costa@ig.com.br>2019-08-02 05:00:34 +0300
commitabebb27644813c8ccda6555c6cdd8b60b58a0930 (patch)
treeab4c04625a3383e7de3d896d4aee6e9fd7c8ff6a /source
parentec131e2d53770b44299ebb9bebcdf3130852ab5d (diff)
DRW: Select Engine: remove unnecessary DRWShadingGroup creations
Diffstat (limited to 'source')
-rw-r--r--source/blender/draw/engines/select/select_draw_utils.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/draw/engines/select/select_draw_utils.c b/source/blender/draw/engines/select/select_draw_utils.c
index 08c6c2ac865..2da61c835d8 100644
--- a/source/blender/draw/engines/select/select_draw_utils.c
+++ b/source/blender/draw/engines/select/select_draw_utils.c
@@ -84,9 +84,8 @@ static void draw_select_id_edit_mesh(SELECTID_StorageList *stl,
*r_face_offset = initial_offset + em->bm->totface;
}
else {
- face_shgrp = DRW_shgroup_create_sub(stl->g_data->shgrp_face_unif);
+ face_shgrp = stl->g_data->shgrp_face_unif;
DRW_shgroup_uniform_int_copy(face_shgrp, "id", 0);
-
*r_face_offset = initial_offset;
}
DRW_shgroup_call(face_shgrp, geom_faces, ob);
@@ -137,7 +136,7 @@ static void draw_select_id_mesh(SELECTID_StorageList *stl,
}
else {
/* Only draw faces to mask out verts, we don't want their selection ID's. */
- face_shgrp = DRW_shgroup_create_sub(stl->g_data->shgrp_face_unif);
+ face_shgrp = stl->g_data->shgrp_face_unif;
DRW_shgroup_uniform_int_copy(face_shgrp, "id", 0);
*r_face_offset = initial_offset;
}