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-05-19 21:15:27 +0300
committermano-wii <germano.costa@ig.com.br>2019-05-19 22:03:29 +0300
commitec02bc299e3371afad02a9ffd7dc0278998b0659 (patch)
treecc8a4ae0d1523bc57f18b50a48c7e09ba5bf2d3f /source
parent289825ee377e64407c694408a0ff9d25ee847445 (diff)
Edit Mesh Select: Fix/update to new logic.
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/mesh/editmesh_select.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/source/blender/editors/mesh/editmesh_select.c b/source/blender/editors/mesh/editmesh_select.c
index d6a32a6bd70..d20a9bb3bea 100644
--- a/source/blender/editors/mesh/editmesh_select.c
+++ b/source/blender/editors/mesh/editmesh_select.c
@@ -280,26 +280,24 @@ BMElem *EDBM_select_id_bm_elem_get(struct EDBMSelectID_Context *sel_id_ctx,
{
char elem_type;
uint elem_id;
- uint prev_offs = 0;
uint base_index = 0;
for (; base_index < sel_id_ctx->bases_len; base_index++) {
struct EDBMBaseOffset *base_ofs = &sel_id_ctx->base_array_index_offsets[base_index];
if (base_ofs->face > sel_id) {
- elem_id = sel_id - (prev_offs + 1);
+ elem_id = sel_id - base_ofs->face_start;
elem_type = BM_FACE;
break;
}
if (base_ofs->edge > sel_id) {
- elem_id = sel_id - base_ofs->face;
+ elem_id = sel_id - base_ofs->edge_start;
elem_type = BM_EDGE;
break;
}
if (base_ofs->vert > sel_id) {
- elem_id = sel_id - base_ofs->edge;
+ elem_id = sel_id - base_ofs->vert_start;
elem_type = BM_VERT;
break;
}
- prev_offs = base_ofs->vert;
}
if (r_base_index) {