diff options
author | mano-wii <germano.costa@ig.com.br> | 2019-07-30 22:32:08 +0300 |
---|---|---|
committer | mano-wii <germano.costa@ig.com.br> | 2019-07-30 22:32:08 +0300 |
commit | fe47c7bf8435afee164896547067ee6092b4673a (patch) | |
tree | c450016ac8bae8df3448f742f7e6baa69a0fd1cb /source/blender/draw/engines/select | |
parent | 34b3a9583ac2433dd8d223d2bd098adc30bc72bd (diff) |
DRW manager: select engine: remove redundant calls
Diffstat (limited to 'source/blender/draw/engines/select')
-rw-r--r-- | source/blender/draw/engines/select/select_engine.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/source/blender/draw/engines/select/select_engine.c b/source/blender/draw/engines/select/select_engine.c index f1fc9cbc0d6..260fe8793e6 100644 --- a/source/blender/draw/engines/select/select_engine.c +++ b/source/blender/draw/engines/select/select_engine.c @@ -196,7 +196,6 @@ static void draw_select_id_object(void *vedata, if (use_faceselect && draw_facedot) { geom_facedots = DRW_mesh_batch_cache_get_facedots_with_select_id(me); } - DRW_mesh_batch_cache_create_requested(ob, me, NULL, false, true); DRWShadingGroup *face_shgrp; if (use_faceselect) { @@ -244,14 +243,12 @@ static void draw_select_id_object(void *vedata, Mesh *me_orig = DEG_get_original_object(ob)->data; Mesh *me_eval = ob->data; - DRW_mesh_batch_cache_validate(me_eval); struct GPUBatch *geom_faces = DRW_mesh_batch_cache_get_triangles_with_select_id(me_eval); if ((me_orig->editflag & ME_EDIT_PAINT_VERT_SEL) && /* Currently vertex select supports weight paint and vertex paint. */ ((ob->mode & OB_MODE_WEIGHT_PAINT) || (ob->mode & OB_MODE_VERTEX_PAINT))) { struct GPUBatch *geom_verts = DRW_mesh_batch_cache_get_verts_with_select_id(me_eval); - DRW_mesh_batch_cache_create_requested(ob, me_eval, NULL, false, true); /* Only draw faces to mask out verts, we don't want their selection ID's. */ DRWShadingGroup *face_shgrp = DRW_shgroup_create_sub(stl->g_data->shgrp_face_unif); @@ -266,9 +263,6 @@ static void draw_select_id_object(void *vedata, *r_vert_offset = me_eval->totvert + 1; } else { - const bool use_hide = (me_orig->editflag & ME_EDIT_PAINT_FACE_SEL); - DRW_mesh_batch_cache_create_requested(ob, me_eval, NULL, false, use_hide); - DRWShadingGroup *face_shgrp = DRW_shgroup_create_sub(stl->g_data->shgrp_face_flat); DRW_shgroup_uniform_int_copy(face_shgrp, "offset", *(int *)&initial_offset); DRW_shgroup_call(face_shgrp, geom_faces, ob); |