diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-12-28 13:26:02 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-12-28 13:26:02 +0300 |
commit | c6e835346259d6289edbd875fb19907e246d215d (patch) | |
tree | 5d19a077bf7a98f90ae40e2edc33207eefc08fea /source/blender/editors/mesh/editmesh_path.c | |
parent | 641d4e2b7fc4fd563c3c2dd880c8c412dd35ce9a (diff) |
Fix possible invalid-index use /w link/path select
Diffstat (limited to 'source/blender/editors/mesh/editmesh_path.c')
-rw-r--r-- | source/blender/editors/mesh/editmesh_path.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/mesh/editmesh_path.c b/source/blender/editors/mesh/editmesh_path.c index e28b3ce3ca8..0adf19337e0 100644 --- a/source/blender/editors/mesh/editmesh_path.c +++ b/source/blender/editors/mesh/editmesh_path.c @@ -572,6 +572,7 @@ static int edbm_shortest_path_pick_invoke(bContext *C, wmOperator *op, const wmE } /* to support redo */ + BM_mesh_elem_index_ensure(em->bm, ele_dst->head.htype); int index = EDBM_elem_to_index_any(em, ele_dst); RNA_int_set(op->ptr, "index", index); |