Fix T64759: Pick select selects an incorrect face in edit mode.

Bug introduced in T64759.
This commit is contained in:
Germano Cavalcante 2019-05-17 13:01:49 -03:00
parent 2a31e0c812
commit 02319549c3
Notes: blender-bot 2023-02-14 02:36:26 +01:00
Referenced by issue #64759, Single click face select in edit mode is broken this morning.
1 changed files with 1 additions and 1 deletions

View File

@ -269,7 +269,7 @@ BMElem *EDBM_select_id_bm_elem_get(struct EDBMSelectID_Context *sel_id_ctx,
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;
elem_id = sel_id - (prev_offs + 1);
elem_type = BM_FACE;
break;
}